diff options
author | damien <damien@mandriva.com> | 2001-05-16 11:03:01 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-05-16 11:03:01 +0000 |
commit | c2f82629c6968282bd55c348df822d03f5b9c553 (patch) | |
tree | ba38addf6276e1718989df966edd4cb4264c30e3 /perl-install/interactive.pm | |
parent | 68540dce9e233595426d7ae01a8161c4bed5d8c2 (diff) | |
download | drakx-c2f82629c6968282bd55c348df822d03f5b9c553.tar drakx-c2f82629c6968282bd55c348df822d03f5b9c553.tar.gz drakx-c2f82629c6968282bd55c348df822d03f5b9c553.tar.bz2 drakx-c2f82629c6968282bd55c348df822d03f5b9c553.tar.xz drakx-c2f82629c6968282bd55c348df822d03f5b9c553.zip |
icons management
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 8 |
1 files changed, 6 insertions, 2 deletions
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 && $>) { |