Gtk3::Image and GtkIconSize




Hi all,

I am trying to migrate an application to Gtk3 and have several smaller and bigger problems. One is related to Gtk3::Image.

With Gtk2 I was used to create an image object like this:
my $image = Gtk2::Image->new_from_stock( 'gtk-index', 'menu' );

When I change it to...
my $image = Gtk3::Image->new_from_stock( 'gtk-index', 'menu' );

... the following error occurs:
Argument "menu" isn't numeric in subroutine entry at /usr/lib/perl5/Glib/Object/Introspection.pm line 57, <DATA> line 19.

Does the matching between the numeric values and the corresponding strings not work yet? Passing '1' does work as expected.

Regards
Mario



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