Re: Getting a gtk label to draw immediatly?



I need to use gtk_label_set_text() on a gtk label that is to have text
changed in the middle of a while() loop.

I tried using gtk_widget_draw_default() on the label after setting its
text and then gtk_main_iteration() in the loop but it dosen't seem to
update the label at all.

I also tried gdk_flush() and a bunch of other functions, they don't seem
to work, what's the trick needed?

As the label has no X window itself, it might be better to
redraw the label parent.

(In the worse case scenario, you should always be allowed 
to use something like unmap/map to force the parent to redraw.
This is just a hack, I am sure there are much cleaner methods.)

Carlos




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