GTK+ & GLib threads
- From: Andrew Kirillov <andrew postmet com>
- To: gtk-app-devel-list gnome org
- Subject: GTK+ & GLib threads
- Date: Wed, 1 Sep 2004 16:26:21 +0300
Hello.
I am writing a multithreaded application. There are two threads:
1) default thread for GUI and 2) a background thread, which downloads
something from network. Sometimes I need to update some widgets
depending on current state of the background thread. I am using a call
to gtk_widget_queue_draw() from the background thread. Then the widget
must receive the expose event and to draw something in the main
thread. All works fine, but not so long. After some time the widget
does not receive expose event any more. The background work performs
as before, but the call to my callback for expose event does not
occur. More of it - some widgets, menu for example, are not updated
after it.
What happens ? Any ideas ?
What is a safe method to invalidate some widgets from a background
thread ?
--
Best regards,
Andrew mailto:andrew postmet com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]