[REGRESSION] PangoWeight is not binded with Gtk3



Hi

PangoWeight is not binded with Gtk3.
See attached gtk2 & gtk3 scripts that uses TextView tags.
The gtk2 version does got boldness.
The gtk3 one cannot:


Argument "bold" isn't numeric in subroutine entry at
/usr/lib/perl5/vendor_perl/5.
18.1/Gtk3.pm line 1125.
Argument "bold" isn't numeric in subroutine entry at
/usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 1125.



See also:
$ perl -e 'use Gtk3 "-init"; warn Pango::parse_weight("bold", 0)'; echo $?
**
ERROR:gperl-i11n-invoke-c.c:590:_allocate_out_mem: code should not be reached
134


One can manually do the following.
perl -e 'use Gtk3 "-init"; warn
Glib::Object::Introspection->convert_sv_to_enum("Pango::Weight",
"bold")'


THAT is not sexy...

Could we have more usable bindings for Pango with Gtk3?
Why are some enums registered but not others?

See you

Attachment: reprod2.pl
Description: Text Data

Attachment: reprod3.pl
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]