Re: Weird problem with GTK+ 2.10.6



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]