Re: mapping of Gtk3::main_iteration
On 17.05.21 08:34, Daniel Kasak wrote: I was told*not* to use this pattern - that it was broken, and in particular would cause major issues under Wayland or Broadway backends Apart from my having made this error, my experience with event_pending is entirely positive. Using Mageia (Xfce) - hence, neither Wayland nor Broadway; "event_pending" behaves prefectly as it should. The context is verifying the validity of a series of URLs; HEAD is iteratively called for each URL, using piped open to run it in its own process and thus avoiding that the GUI (Gtk) is paralysed while HEAD is running. Juergen ___ gtk-perl-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: mapping of Gtk3::main_iteration
On Sat, May 15, 2021 at 5:21 PM Juergen Harms via gtk-perl-list
wrote:
>
> Hello,
>
> When I run
>
> if (Gtk3:::event_spending () ) { Gtk3->main_iteration (); }
Quick note. I had used this pattern ( or something similar ) in
various places to keep the GUI ticking over while waiting for
something to happen, and I commented in a gtk+ dev list about some
issue I was having. I was told *not* to use this pattern - that it was
broken, and in particular would cause major issues under Wayland or
Broadway backends. I later confirmed this. I guess if you're *only*
targeting X, it appears to work.
Dan
___
gtk-perl-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: mapping of Gtk3::main_iteration
On 15.05.21 09:20, Juergen Harms via gtk-perl-list wrote:
When I run
if (Gtk3:::event_spending () ) { Gtk3->main_iteration (); }
to get my display updated while waiting for piped input, this loop does
what I expect it to do, but also produces the following error message
Gtk3::main_iteration: passed too many parameters (expected 0, got 1);
ignoring excess at ...
Gtk3::main_iteration is meant to be called as a function, not as a
static method: Gtk3::main_iteration(). The warning stems from
Gtk3->main_iteration() being equivalent to Gtk3::main_iteration('Gtk3').
-Torsten
___
gtk-perl-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
mapping of Gtk3::main_iteration
event_spending -> events_pending OK in my code, messed up when copying it to Thunderbrid - Sorry ___ gtk-perl-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtk-perl-list
mapping of Gtk3::main_iteration
Hello,
When I run
if (Gtk3:::event_spending () ) { Gtk3->main_iteration (); }
to get my display updated while waiting for piped input, this loop does
what I expect it to do, but also produces the following error message
Gtk3::main_iteration: passed too many parameters (expected 0, got 1);
ignoring excess at ...
Am I doing something wrong? is this a mapping error?
___
gtk-perl-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
