summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
commita419039b11d02b7ef2b7f894b199b245a7876303 (patch)
tree80c4d24a153aff1c05609b529d086457fe557c49 /perl-install/Xconfig
parentc591bd073fb71703d6eb804429ed5b7e53bc538f (diff)
downloaddrakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.gz
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.bz2
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.xz
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.zip
perl_checker compliance
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 81559dee7..5d448572a 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -104,7 +104,7 @@ sub allowed {
push @resolution_and_depth,
map {
my $Depth = $_;
- map { m/(\d+)x(\d+)/; { X => $1, Y => $2, Depth => $Depth } } @resolutions;
+ map { m/(\d+)x(\d+)/ && { X => $1, Y => $2, Depth => $Depth } } @resolutions;
} @depths;
}
$prefered_depth, @resolution_and_depth;
@@ -293,8 +293,7 @@ sub choose_gtk {
$x_res_combo->set_popdown_strings(uniq map { "$_->{X}x$_->{Y}" } sort { $a->{X} <=> $b->{X} } @resolutions);
$x_res_combo->entry->signal_connect(changed => sub {
$x_res_combo->entry->get_text eq '' and return; #- FIXME temporarily workaround gtk suckiness (set_text generates two 'change' signals, one when removing the whole, one for inserting the replacement..)
- $x_res_combo->entry->get_text =~ /(\d+)x(\d+)/;
- $set_chosen_x_res->($1, $2);
+ $set_chosen_x_res->($1, $2) if $x_res_combo->entry->get_text =~ /(\d+)x(\d+)/;
if (!member($chosen_Depth, @{$x_res2depth{$chosen_x_res}})) {
$set_chosen_Depth->(max(@{$x_res2depth{$chosen_x_res}}));