From c2f82629c6968282bd55c348df822d03f5b9c553 Mon Sep 17 00:00:00 2001 From: damien Date: Wed, 16 May 2001 11:03:01 +0000 Subject: icons management --- perl-install/interactive.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'perl-install/interactive.pm') diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index ec14ab59c..55b4e58ae 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -55,7 +55,7 @@ sub new($) { } sub vnew { - my ($type, $su) = @_; + my ($type, $su, $icon) = @_; $su = $su eq "su"; require c; if ($ENV{DISPLAY} && system('/usr/X11R6/bin/xtest') == 0) { @@ -66,7 +66,11 @@ sub vnew { } } eval { require interactive_gtk }; - !$@ and return interactive_gtk->new; + if (!$@) { + my $o = interactive_gtk->new; + $icon and $o->{icon} = $icon; + return $o; + } } if ($su && $>) { -- cgit v1.2.1