Re: Using fork() in a GTK C/Vala application

2015-09-01 Thread Leandro A. F. Pereira
On Tue, Sep 1, 2015 at 10:33 AM, rastersoft wrote: > It is very subtle, because it hapens usually > after being running for two-three days. It is a double free. I tried > with Valgrind, but when I use it, the error doesn't trigger, which makes > me suspect it is a race

Using GLib main loop to free up temporary memory

2007-01-03 Thread Leandro A. F. Pereira
) { gchar *temp = idle_free(g_strdup(i am a temporary variable)); return g_strdup_printf(%s - %f, temp, G_PI); } This way the memory will be freed as soon as GLib gains control and the main loop is ready to process events. Use the code as you wish. Cheers, -- Leandro A. F. Pereira [EMAIL

Saving a GdkWindow to a file

2007-01-03 Thread Leandro A. F. Pereira
Thanks in advance, -- Leandro A. F. Pereira [EMAIL PROTECTED] Developer, Tiamat Software Wizardry. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: how can i access usb memory stick as a non-root

2005-06-27 Thread Leandro A. F. Pereira
On Mon, 2005-06-27 at 19:49 +0530, harshavardhanreddy mandeepala wrote: i am using linux fedora core 3. i want to access usb memorystick as a non-root user. If someone's gonna answer to this post, please do in private. Leandro ___

Re: http://www.gtk.org/tutorial/sec-anupgradedhelloworld.html

2005-02-17 Thread Leandro A. F. Pereira
On Thu, 2005-02-17 at 13:17 +0100, Hubert Sokoowski wrote: You should learn some more about programming in C before you start writing GTK apps. Or consider using something else, such as Python. Leandro ___ gtk-app-devel-list mailing list

Re: can I pass user data to a button callback?

2005-02-14 Thread Leandro A. F. Pereira
On Tue, 2005-02-15 at 00:34 +0100, Felix Kater wrote: can I pass (a pointer to) user data to a button's callback? The compiler wants me to create button callbacks like void (*)(void) -- but what I need is void (*)(void*), at least for the pressed and released signals You may try the following