Re: Update progress bar without returning to main loop?



I do not think that this approch will work: GTK+ just pushes events like timer or idle calls onto the event queue and will execute them (e.g. call corresponding signal handlers) when gtk_main() regains control.

If the calculation which should show the progress bar takes long time, timer events will not be emitted during this period (except that the calculation function calls Gtk::Main::iteration()) but delayed until the calculation has finished. No progressbar update will be visible.

 - Armin



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