summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive_gtk.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-05 23:02:56 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-05 23:02:56 +0000
commit0c77eeabed86bbe54662d435016d7290ffd74141 (patch)
treeba6bcfd2bdcb33e87e62c4a4f32a397211eda92c /perl-install/interactive_gtk.pm
parent5798823e331c86fb3f97593b0cd2820224767d15 (diff)
downloaddrakx-backup-do-not-use-0c77eeabed86bbe54662d435016d7290ffd74141.tar
drakx-backup-do-not-use-0c77eeabed86bbe54662d435016d7290ffd74141.tar.gz
drakx-backup-do-not-use-0c77eeabed86bbe54662d435016d7290ffd74141.tar.bz2
drakx-backup-do-not-use-0c77eeabed86bbe54662d435016d7290ffd74141.tar.xz
drakx-backup-do-not-use-0c77eeabed86bbe54662d435016d7290ffd74141.zip
no_comment
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r--perl-install/interactive_gtk.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm
index cb3258d3b..c0582ea51 100644
--- a/perl-install/interactive_gtk.pm
+++ b/perl-install/interactive_gtk.pm
@@ -76,7 +76,7 @@ sub ask_many_from_list_refW($$$$$) {
sub ask_from_entries_refW {
my ($o, $title, $messages, $l, $val, %hcallback) = @_;
- my $num_champs = @{$l};
+ my $num_fields = @{$l};
my $ignore = 0; #to handle recursivity
my $w = my_gtk->new($title, %$o);
@@ -101,7 +101,7 @@ sub ask_from_entries_refW {
my @updates = mapn {
my ($entry, $ref) = @_;
- return sub { ${$ref->{val}} = comb_entry($entry, $ref)->get_text };
+ sub { ${$ref->{val}} = comb_entry($entry, $ref)->get_text };
} \@entries, $val;
my @updates_inv = mapn {
@@ -111,7 +111,7 @@ sub ask_from_entries_refW {
} \@entries, $val;
- for (my $i = 0; $i < $num_champs; $i++) {
+ for (my $i = 0; $i < $num_fields; $i++) {
my $ind = $i; #cos lexical bindings pb !!
my $entry = $entries[$i];
#changed callback
@@ -122,7 +122,7 @@ sub ask_from_entries_refW {
&{$hcallback{changed}}($ind);
#update all the value
$ignore = 1;
- foreach (@updates_inv) { &{$_};}
+ &$_ foreach @updates_inv;
$ignore = 0;
};
};
@@ -139,7 +139,7 @@ sub ask_from_entries_refW {
}
comb_entry($entry,$val->[$i])->signal_connect(changed => $callback);
comb_entry($entry,$val->[$i])->signal_connect(activate => sub {
- ($ind == ($num_champs -1)) ?
+ ($ind == ($num_fields -1)) ?
($w->{ok}->grab_focus(), ) : (comb_entry($entries[$ind+1],$val->[$ind+1])->grab_focus(),$_[0]->signal_emit_stop("activate")) ;
});
comb_entry($entry,$val->[$i])->set_text(${$val->[$i]{val}}) if ${$val->[$i]{val}};