diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mygtk2.pm | 4 |
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}; |