Re: mapping of Gtk3::main_iteration

2021-05-19 Thread Juergen Harms via gtk-perl-list

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
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: mapping of Gtk3::main_iteration

2021-05-17 Thread Daniel Kasak via gtk-perl-list
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
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: mapping of Gtk3::main_iteration

2021-05-15 Thread Torsten Schoenfeld via gtk-perl-list

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
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list