From f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 6 Jan 2005 14:52:13 +0000 Subject: add {icon} for Window --- perl-install/mygtk2.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/mygtk2.pm') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 14e1d7c94..efd136178 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -411,6 +411,10 @@ sub _gtk_any_Window { $w->set_border_width(delete $opts->{border_width}) if exists $opts->{border_width}; $w->set_shadow_type(delete $opts->{shadow_type}) if exists $opts->{shadow_type}; $w->set_position(delete $opts->{position_policy}) if exists $opts->{position_policy}; + if (my $name = delete $opts->{icon}) { + my $f = _find_imgfile($name) or internal_error("can not find $name"); + $w->set_icon(gtknew('Pixbuf', file => $f)); + } } $w->set_title(delete $opts->{title}) if exists $opts->{title}; -- cgit v1.2.1