Re: show/hide widgets



Gtk isn't thread safe, but "thread aware": See Gdk Docs -> Threads.

Basically you have to use

gdk_threads_init()

...

gdk_threads_enter()
gtk_main()
gdk_threads_leave()

...

Before every call from a thread to Gdk / Gtk+ you have to get the Gdk lock
via gdk_threads_enter()

HTH

Jan-Marek



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