Re: show/hide widgets
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: Christopher Leopold <leopold in tum de>
- Cc: Olexiy Avramchenko <olexiy ctech cn ua>, gtk-list gnome org, Paul Davis <paul linuxaudiosystems com>
- Subject: Re: show/hide widgets
- Date: Thu, 14 Oct 2004 23:29:06 +0200 (CEST)
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]