Re: BUG: Gtk3::Application->id_is_valid stringifies the object it's called on
- From: Thierry Vignaud <thierry vignaud gmail com>
- 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 11:21:48 +0200
On 20 September 2016 at 11:16, Thierry Vignaud
<thierry vignaud gmail com> wrote:
Hi
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.
Ouch!!!!!
Some annotation issue or a perl-Glib-Object-Introspect
Another issue is that if we pass undef as application id to
Gtk3::Application->new,
we got the following error:
GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL'
failed at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm
line 67.
If we pass "" as id, we got:
(process:16552): Gtk-CRITICAL **: gtk_application_new: assertion
'application_id == NULL || g_application_id_is_valid (application_id)'
failed
However the doc does say a NULL value is OK:
https://developer.gnome.org/gtk3/stable/GtkApplication.html#gtk-application-new
And the annotation looks OK to me:
grep -A4 'parameter name="application_id"'
/usr/share/gir-1.0/Gio-2.0.gir |grep -B4 "the identifier for
@applicatio"
<parameter name="application_id"
transfer-ownership="none"
nullable="1"
allow-none="1">
<doc xml:space="preserve">the identifier for @application</doc>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]