summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-06 14:52:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-06 14:52:13 +0000
commitf32a2c875f05c2dc89b3e6c27754c15bfc2cfc25 (patch)
treee85abfb636df8385ff6f2f7ec79870600f13d895 /perl-install/mygtk2.pm
parent2bbb9d04afdcceb813d2aee457fdf6ad7241870e (diff)
downloaddrakx-backup-do-not-use-f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25.tar
drakx-backup-do-not-use-f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25.tar.gz
drakx-backup-do-not-use-f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25.tar.bz2
drakx-backup-do-not-use-f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25.tar.xz
drakx-backup-do-not-use-f32a2c875f05c2dc89b3e6c27754c15bfc2cfc25.zip
add {icon} for Window
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm4
1 files changed, 4 insertions, 0 deletions
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};