On 20.09.2016 11:16, Thierry Vignaud wrote:
> There's  a big bug:
> Gtk3::Application->id_is_valid stringifies the object it's called on:
> Aka:
> 
> 
> $ perl ko.pl
> $VAR1 = [
>           bless( {}, 'Gtk3::Application' )
>         ];
> $VAR1 = [
>           'Gtk3::Application=HASH(0x3463828)'
>         ];
> Can't locate object method "register" via package
> "Gtk3::Application=HASH(0x3463828)" (perhaps you forgot to load
> "Gtk3::Application=HASH(0x3463828)"?) at ko.pl line 13.

id_is_valid is not a method, but a class function in
Glib::IO::Application.  See 'perli11ndoc Gio::Application::id_is_valid'
or the C docs.  So this should work:

  Glib::IO::Application::id_is_valid ('test.test')

(Yeah, I'm aware of the "Gio" vs. "Glib::IO" mismatch in the
'perli11ndoc' call above, but I don't know how to resolve it -- given
that perli11ndoc is not aware of the Glib::IO module.  Suggestions welcome.)
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to