Re: [gtk-win32] Updating a progress bar from a worker thread



Whoa, does this list still exist?

Anyway, without going into details (I must admit I am in a hurry now
and did not read your message thoroughly), you simply can't use GTK+
from multiple threads on Windows. That is a bug, yes, but it is one
that is quite hard to fix. Call gtk_* or gdk_* functions from just one
thread. Have the other threads schedule code to be executed in the
main thread with g_idle_add() instead. This is the recommended
practice even on X11 where it works to use GTK+ from multiple threads
(if one is very careful and has all the locking taken care of
correctly).

--tml


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