Re: Gtk and threads
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list redhat com
- Subject: Re: Gtk and threads
- Date: 10 Sep 1998 11:08:57 -0400
Aaron Digulla <digulla@wi-pc44.fh-konstanz.de> writes:
> No, this is no question if Gtk supports threads. I have a threaded
> application which doesn't work as it should. The symptoms are like
> this:
>
> My app calls gtk_clist_set_text () but the new text never shows
> up on the screen.
>
> I added lots of debug printf()s and finally came up with this result
> which I don't understand:
>
> Gtk stops in the select() in gdk.c. When CList draws something, then
> the select() *doesn't* come back !! Gtk hangs there infinitely. When
> I add a gtk_threads_wake() at the end of draw_row() in gtkclist.c,
> then the GUI is ok for the CList but button highlighting doesn't
> work.
>
> Surely, this is not what should happen ? Why doesn't select() return
> on the X events ?
I must admit, I don't really understand what's going on here.
It sounds like X is getting confused somehow. Are you sure
that you are enclosing the gtk_clist_set_text() call in
a:
gdk_threads_enter()
[...]
gdk_threads_leave()
pair. Do you have example code that we could look at?
Regards,
Owen
------- End of forwarded message -------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]