If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=567668
gnome-perl | Glib | Ver: unspecified
Summary: default GET_PROPERTY method on unichar ParamSpec
Product: gnome-perl
Version: unspecified
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: Glib
AssignedTo: gtk...@li...
ReportedBy: us...@zi...
QAContact: gtk...@li...
GNOME version: Unspecified
GNOME milestone: Unspecified
In perl-glib 1.200 the program below gets a warning
Argument "\x{78}" isn't numeric in subroutine entry at foo.pl line 19.
and prints
0
where I hoped it would print 120.
I suspect the default GET_PROPERTY func for a subclass doesn't pick out the
char default from the paramspec the right way.
package Foo;
use strict;
use warnings;
use Glib;
use Glib::Object::Subclass
Glib::Object::,
properties => [Glib::ParamSpec->unichar
('uniprop',
'uniprop',
'Blurb.',
'x', # default
Glib::G_PARAM_READWRITE)
];
use strict;
use warnings;
use Glib;
my $foo = Foo->new;
print $foo->get('uniprop'), "\n";
exit 0;
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=567668.
|