On 21.12.2012 08:41, Mario Kemper wrote:
calling set_default_icon_name seems to break the subsequent code with the following error message: Can't locate object method "add" via package "Gtk3::Window=HASH(0x1e632b0)" (perhaps you forgot to load "Gtk3::Window=HASH(0x1e632b0)"?) at gtk3.pl <http://gtk3.pl> line 12.
Looks like set_default_icon_name is a function, not a method: <http://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-set-default-icon-name>. So it would be Gtk3::Window::set_default_icon_name ('...') in Perl. The confusing error messages is due to $window being stringified, I think. Unfortunately, we still lack code that checks the number of parameters and errors out on mismatch; that would have produced a clearer message.
_______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list