Re: [gtk-list] Progress bar



On Sat, 2 May 1998 jrfmeyer@garden.net 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();

(or so.)

Andreas



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