Gtk3::Window and set_default_icon_name
- From: Mario Kemper <mario kemper gmail com>
- To: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Gtk3::Window and set_default_icon_name
- Date: Fri, 21 Dec 2012 08:41:20 +0100
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.pl line 12.
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]