Gtk::Main::iteration



Hello all,
I'm trying to show some progress in a progress bar.
 
When ever I update the progress bar (in a for loop), I'm trying to flush all the pending events to show the progress bar like this.
 
for (int i =0; i < 100; ++i)
{
     update_progress_bar () ;
     while (Gtk::Main::events_pending())
     {
               Gtk::Main::iteration (true) ;
     }
}
 
This is working fine on linux. But on windows I'm getting stuck at Gtk::Main::iteration (true). The call is not getting completed.
 
What am i doing wrong here ?
 
Any ideas ?
 
I'm using Gtkmm-2.12.5 with VS 2005
 
Thanks,
Surya


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