Re: [gtk-list] Re: Progress bar

On Sat, 2 May 1998, Andreas Kostyrka wrote:

> On Sat, 2 May 1998 wrote:
> > hello all:
> > 	I have encountered a small problem with the progress bar widget
> > 	that perhaps someone has a simple solution to.
> > 	I am forking a child process (using popen) and executing a
> > 	shell command. The output of this command is to be used to
> > 	update the progress bar widget. Unfortunatly the progress bar
> > 	will not redraw reflecting the updated percentage until after
> > 	the child process is finished. Any ideas are welcome.
> That's because you don't get back to the mainloop.
> Check the actual functions name, but you basically need something like
> this:
> while(gtk_events_pending())
>   gtk_main_iteration();

Back when I was playing with this, I seemed to get slightly better
interactive performance with: 

  do {
  } while (gtk_events_pending());

Kenneth Albanowski (, CIS: 70705,126)

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