From 74ae29b7a86b823c44377afc56ce0babae5bb9b7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 9 Aug 2004 02:17:02 +0000 Subject: - move the "Input method:" at the end (titi did put it in the middle for OptionMenu which is crap) - need updating the "changed" callback since there is a new entry --- perl-install/any.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index d0154307f..26eec0135 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -712,14 +712,14 @@ sub selectCountry { advanced_messages => N("Here is the full list of available countries"), advanced_label => N("Other Countries"), advanced_state => $ext_country && scalar(@best), - callbacks => { changed => sub { $other = $_[0] == 1 } }, + callbacks => { changed => sub { $_[0] != 2 and $other = $_[0] == 0 } }, }, [ if_(@best, { val => \$country, type => 'list', format => \&lang::c2name, list => \@best, sort => 1 }), + { val => \$ext_country, type => 'list', format => \&lang::c2name, + list => [ @countries ], advanced => scalar(@best) }, { val => \$locale->{IM}, type => 'combo', label => N("Input method:"), sort => 0, list => [ N_("None"), sort(lang::get_ims()) ], advanced => 1, format => sub { uc(translate($_[0])) }, }, - { val => \$ext_country, type => 'list', format => \&lang::c2name, - list => [ difference2(\@countries, \@best) ], advanced => scalar(@best) }, ]) or return; $locale->{country} = $other || !@best ? $ext_country : $country; -- cgit v1.2.1