Re: Weird problem with GTK+ 2.10.6
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: Weird problem with GTK+ 2.10.6
- Date: Wed, 20 Dec 2006 12:27:36 +0000
On Tuesday 19 December 2006 21:21, Tomasz Jankowski wrote:
Update:
I was wrong - the same situation occurs on all platforms....
You cannot use gdk_threads_enter() and gdk_threads_leave() on windows. It
should work on Unix-like systems with the X11 backend, and if it doesn't it
is likely to be something amiss with your code - this might help:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html
If you want something platform independent, then inserting a callback into the
main program loop with g_idle_add() to update the progress bar is a good
approach - make sure the handler returns FALSE though. The main loop is
thread safe provided you have called g_thread_init(), so you can call
g_idle_add() from any thread.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]