Gtk3->main_iteration while ( Gtk3->events_pending ); ?



Hi all.

I used to in some places go:

 Gtk2->main_iteration while ( Gtk2->events_pending );

to keep the UI updating inside large loops. When changed to:

 Gtk3->main_iteration while ( Gtk3->events_pending );

 ... I get the desired affect, but I also get:

*** Gtk3::main_iteration: passed too many parameters (expected 0, got 1); ignoring excess at forms/main.pm line 39.
*** Gtk3::events_pending: passed too many parameters (expected 0, got 1); ignoring excess at forms/main.pm line 39.

Is this not the way to do it any more?

Dan


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