Re: [gtk-list] Re: GtkProgressBar && RE: updating a progress bar in a loop
- From: Marc Ewing <marc redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: GtkProgressBar && RE: updating a progress bar in a loop
- Date: Thu, 05 Mar 1998 13:11:17 -0500
Owen Taylor <owt1@cornell.edu> writes:
> > > while (gtk_events_pending())
> > > gtk_main_iteration();
> [ Maybe gtk_progress_bar_update should redraw itself instantly instead
> of queuing a draw? ]
Probably. I also think the above little code snippet ought to go
in a small function like gtk_flush_draws() or something. As someone
mentioned already, there are plenty of times when you need to change
a dialog box or display to reflect status as you are doing some
other work.
In similar news, a colleague is having trouble with this:
{
dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL);
label = gtk_label_new("Installing packages");
gtk_container_add(GTK_CONTAINER(dialog), label);
gtk_widget_show(label);
gtk_widget_show(dialog);
while (gtk_events_pending())
gtk_main_iteration();
[do lots of other work here]
}
During the "lots of work", the window pops up, but the label is
never shown. Shouldn't this work?
-Marc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]