Re: Getting a gtk label to draw immediatly?
- From: Jonathan Blandford <jrb redhat com>
- To: learfox furry ao net
- Cc: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: Getting a gtk label to draw immediatly?
- Date: 08 Nov 2000 16:31:29 -0500
learfox furry ao net writes:
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?
You need a
while (gtk_events_pending ())
gtk_main_iteration ();
-Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]