Re: [gtk-win32] Updating a progress bar from a worker thread
- From: Tor Lillqvist <tml iki fi>
- To: "Gtk+ on win32 platform packaging and distribution discussion" <gtk-win32-list gnome org>
- Subject: Re: [gtk-win32] Updating a progress bar from a worker thread
- Date: Sat, 19 Dec 2009 19:55:40 +0200
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]