diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-11-05 16:45:20 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-11-05 16:45:20 +0000 |
commit | 9ff7de045d43481f087f30db037992341c09680a (patch) | |
tree | f4f18b1b772b9d0635af08f41ae90261925c7ac4 /perl-install/interactive_gtk.pm | |
parent | 350a90a90a0bafcc964e4b3556238660b134fc4c (diff) | |
download | drakx-9ff7de045d43481f087f30db037992341c09680a.tar drakx-9ff7de045d43481f087f30db037992341c09680a.tar.gz drakx-9ff7de045d43481f087f30db037992341c09680a.tar.bz2 drakx-9ff7de045d43481f087f30db037992341c09680a.tar.xz drakx-9ff7de045d43481f087f30db037992341c09680a.zip |
no_comment
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r-- | perl-install/interactive_gtk.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index 7074e6664..3063a2d19 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -48,14 +48,13 @@ sub ask_from_listW { sub ask_many_from_list_refW($$$$$) { my ($o, $title, $messages, $list, $val) = @_; - my $n = 0; my $w = my_gtk->new('', %$o); my $box = gtkpack(new Gtk::VBox(0,0), map { - my $nn = $n++; + my $i = $::i; my $o = Gtk::CheckButton->new($_); - $o->set_active(${$val->[$nn]}); - $o->signal_connect(clicked => sub { invbool \${$val->[$nn]} }); + $o->set_active(${$val->[$i]}); + $o->signal_connect(clicked => sub { invbool \${$val->[$i]} }); $o; } @$list); gtkadd($w->{window}, |