Re: BUG: Gtk3::Application->id_is_valid stringifies the object it's called on
- From: Torsten Schoenfeld <torsten schoenfeld gmx de>
- To: GTK-Perl List <gtk-perl-list gnome org>, Olav Vitters <olav vitters nl>
- Subject: Re: BUG: Gtk3::Application->id_is_valid stringifies the object it's called on
- Date: Tue, 20 Sep 2016 16:08:42 +0200
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.)
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]