Re: Multiple threads: one interface
- From: David Smith <DavidSmith byu net>
- To: gtk-app-devel-list gnome org
- Subject: Re: Multiple threads: one interface
- Date: 09 Dec 2002 15:20:06 -0700
I've narrowed the problem down to the fact that I am calling
gtk_widget_draw, which appears to be colliding with gtk_main somehow.
I've surrounded the call with gdk_threads_enter() and
gdk_threads_leave(), but I still get xlib errors (unexpected async
reply). Anyone know how I can safely refresh a gtk_tree_view from a
thread?
Thanks,
--Dave
On 9 Dec 2002, David Smith wrote:
I've created this GTK+2.0 app that has threads in the following setup:
1. thread Main launches gtk_main();
2. thread A collects network data and passes it to update_treeview, a
function that directly manipulates the gui.
3. thread B runs within the gui and performs cleanup on it. Every 1
second, it checks for outdated entries in the treeview and udpates their
display.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]