summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/newt.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-05 12:26:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-05 12:26:59 +0000
commit96279a0b9750c1d757b48c40cd1f17b5a60ea014 (patch)
treecd560f727a90ded832cfd5480f248848006f73d0 /perl-install/interactive/newt.pm
parent3812fd80c231dba41da389d575547492c994552c (diff)
downloaddrakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.gz
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.bz2
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.tar.xz
drakx-96279a0b9750c1d757b48c40cd1f17b5a60ea014.zip
use each_index instead of map_index when the return value is not used
Diffstat (limited to 'perl-install/interactive/newt.pm')
-rw-r--r--perl-install/interactive/newt.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm
index 9493910e9..0f3dd7456 100644
--- a/perl-install/interactive/newt.pm
+++ b/perl-install/interactive/newt.pm
@@ -139,7 +139,7 @@ sub ask_fromW_real {
$get = sub { $w->ListboxGetCurrent };
$set = sub {
my ($val) = @_;
- map_index {
+ each_index {
$w->ListboxSetCurrent($::i) if $val eq $_;
} @{$e->{list}};
};
@@ -163,7 +163,7 @@ sub ask_fromW_real {
$set_all->();
my $grid = Newt::Grid::CreateGrid(3, max(1, int @$l));
- map_index {
+ each_index {
$grid->GridSetField(0, $::i, 1, ${Newt::Component::Label(-1, -1, $_->{e}{label})}, 0, 0, 1, 0, 1, 0);
$grid->GridSetField(1, $::i, 1, ${$_->{real_w}}, 0, 0, 0, 0, 1, 0);
} @widgets;