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



Just change them to e.g. Gtk3::main_iteration while Gtk3::events_pending and you'll be good to go.

Terence J. Ferraro


On Tue, Apr 29, 2014 at 11:00 PM, Daniel Kasak <d j kasak dk gmail com> wrote:
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

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list




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