problem with label and threaded app



Hi,

My app starts a thread and does some graphic (via a GtkDataBox) in that
thread. I use for this

	gdk_threads_enter();
	gdk_threads_leave();

The threaded function is an infinite loop that waits for some flags
(changeable from the UI). I also have a label to display the status of
the thread (using a counter that is incremented at the begining of the
loop). 

Now the problem:

- if I don't use the DataBox, then things looks ok as the label is
updated all the time.
- if I choose to use the DataBox, then the label is no more updated and
the higlight states are no more shown for any widget. The events are
trapped and the tooltips are displayed. Very strange.

Any ideas ?

TIA,

Ionutz
-- 
Mental backup in progress - Do Not Disturb!
--
http://borco-ei.eng.hokudai.ac.jp/~borco/



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