Hi, Arnaud Charlet <charlet@xxxxxxxxxxxxx> writes: > > If gdk_thread_init() would call g_thread_init() you couldn't use GTK+ > > with another library or any code that needs to call g_thread_init() > > before gtk_init(). Doesn't sound like a good idea to me. > > That's misleading: gdk_thread_init would call g_thread_init if not > already done (it already checks whether g_thread_init has been > called), so that doesn't prevent you from calling g_thread_init > before hand, possibly with different arguments. > > As for not being able to use GTK+ with another library that's not a > valid argument: Gdk depends on glib already for many things, so the > dependency is there, and can't be removed. I wasn't talking about removing the dependency. But you might want to use glib, gtk+ _and_ some other library using GThreads. > Now, I'm sure there must be *some* valid reason for not doing the > obvious, but I don't see what this reason would be (and don't see it > documented as part of e.g. gdk_threads_init). Well, perhaps the reason is simply that gdk_threads_init() is so rarely used since it is in general a bad idea to have multiple threads access the user interface. But you could of course file a bug report and ask to have gdk_threads_init() changed. Sven _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list