Re: Stupid question regarding g_thread_init() and gtk_threads_init()



> > Why are there two functions for this?  Why doesn't g_thread_init() call
> > gtk_threads_init()?
> 
> g_thread_init() is part of GLib and GLib doesn't know anything about
> GTK+.  You don't seriously expect the lower level library to call
> functions in the higher level library, do you?

On the other hand, gdk_threads_init could very well call g_thread_init,
which would make things simpler for the users, rather than checking
explicitely and complaining :-)

Arno



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]