summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-05-16 11:03:01 +0000
committerdamien <damien@mandriva.com>2001-05-16 11:03:01 +0000
commitc2f82629c6968282bd55c348df822d03f5b9c553 (patch)
treeba38addf6276e1718989df966edd4cb4264c30e3 /perl-install/interactive.pm
parent68540dce9e233595426d7ae01a8161c4bed5d8c2 (diff)
downloaddrakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar
drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.gz
drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.bz2
drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.xz
drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.zip
icons management
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r--perl-install/interactive.pm8
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 && $>) {