Eh.Re: Clarification of GTK/GDK locking pre GTK 4.0
http://thread.gmane.org/gmane.comp.gnome.gtk+.general/24817/focus=24834
I've been reading the whole thread, as well as other threads on the group, and I'm not sure the situation is clarified in my head... :-)
Some says Gdk.thread_* functions are deprecated and everything touching Gtk should run in the main thread, some says GLib.idle_add is running in the main thread and it's OK but maybe not...
So, say my application is not using any threads (it doesn't create threads on its own):
* should I still call Gdk.theads_init()?
* is it safe to use GLib.idle_add() & co? If no, in which context is it unsafe?
* must I use Gdk.threads_add_* & co? If yes, in which context must I use them?
* is it safe to assume that all my code is running in the main thread, and that I can skip using Gdk.threads_* API and that I also don't have to use GLib.idle_add API to schedule modifications to my Gtk widgets? [2]
[2]: in lot of places, my application was using lines like:
GLib.idle_add(gtk_entry.set_text, "foo bar")