summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-05 11:54:09 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-05 11:54:09 +0000
commit2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643 (patch)
tree8a174842da8d22d54e12f435278f6981c6f28b86 /perl-install/interactive_gtk.pm
parenta3f21e6d00f52788681f3a44ee355338a99a5c63 (diff)
downloaddrakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar
drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.gz
drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.bz2
drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.tar.xz
drakx-2d7ce2007c8bcaf5b7e45e0a1dd67862a5637643.zip
no_comment
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r--perl-install/interactive_gtk.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index 719313549..4e525e5c7 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -29,6 +29,7 @@ sub ask_from_listW {
my ($o, $title, $messages, $l, $def) = @_;
if (@$l < 5 && sum(map { length $_ } @$l) < 70) {
+ my $defW;
my $w = my_gtk->new($title, %$o);
my $f = sub { $w->{retval} = $_[1]; Gtk->main_quit };
gtkadd($w->{window},
@@ -37,12 +38,12 @@ sub ask_from_listW {
map {
my $b = new Gtk::Button($_);
$b->signal_connect(clicked => [ $f, $_ ]);
- $_ eq $def and $def = $b;
+ $_ eq $def and $defW = $b;
$b;
} @$l),
),
);
- $def->grab_focus if $def;
+ $defW->grab_focus if $defW;
$w->main;
} else {
my $w = my_gtk->new($title);