Hi all,

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.plline 12.

See my example below. I've added only one line to the example  code copied
from http://search.cpan.org/~tsch/Gtk3-0.008/lib/Gtk3.pm

Regards
Mario

-----------------------------code------------------------
#! /usr/bin/perl

use strict;
use warnings;

use Gtk3 -init;
my $window = Gtk3::Window->new ('toplevel');
$window->set_default_icon_name('gtk-index');

my $button = Gtk3::Button->new ('Quit');
$button->signal_connect (clicked => sub { Gtk3::main_quit });

$window->add ($button);
$window->show_all;

Gtk3::main;

1;
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to