Re: Gtk::ProgressBar doesn't work synchronously

2008-06-28 Thread Till Harbaum / Lists
Hi, try calling gtk's main processing routine while your task is doing its work. Something like while(gtk_events_pending ()) gtk_main_iteration (); right after your update of the state of the progress bar should do the trick. Till Am Mittwoch 09 April 2008 schrieb Garth's KidStuff

Re: Gtk::ProgressBar doesn't work synchronously

2008-04-09 Thread Gabriele Greco
> Start a complex task > Create a Progress Monitor dialog and show it > Update the dialog as the task progresses > Destroy the dialog > > Every time you update the dialog (or also more often if you can) you should do something like: while (gtk_events_pending()) gtk_main_iteration(); To let GTK

Gtk::ProgressBar doesn't work synchronously

2008-04-09 Thread Garth's KidStuff
Hi All, I'm converting a large Windows/Mac project to run on Ubuntu, and I'm a little stuck when trying to use a ProgressBar. We have a cross-platform class that assumes I can create a "Progress Monitor" dialog during time-intensive tasks, and then periodically update the progress as the task com