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

Re: Gtk::ProgressBar doesn't work synchronously



> 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 update the interface.

GTK runs only when you give the control to gtk_main() or if you give him
some "space" with gtk_main_iteration() :)

-- 
Bye,
 Gabry


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