Re: Gtk::ProgressBar doesn't work synchronously
- From: "Gabriele Greco" <gabriele greco darts it>
- To: "Garth's KidStuff" <garthskidstuff gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Gtk::ProgressBar doesn't work synchronously
- Date: Wed, 9 Apr 2008 17:47:04 +0200
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]