summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-30 02:22:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-30 02:22:47 +0000
commit0c3fb55d6d55f4e423e600c2e34b150dc2940a7d (patch)
tree88a3d6a86573cbf25add52b37e82fd214b2fd03f /perl-install/Xconfig
parentae3a5a6bde3be6c52670c358c147376eef7581a7 (diff)
downloaddrakx-0c3fb55d6d55f4e423e600c2e34b150dc2940a7d.tar
drakx-0c3fb55d6d55f4e423e600c2e34b150dc2940a7d.tar.gz
drakx-0c3fb55d6d55f4e423e600c2e34b150dc2940a7d.tar.bz2
drakx-0c3fb55d6d55f4e423e600c2e34b150dc2940a7d.tar.xz
drakx-0c3fb55d6d55f4e423e600c2e34b150dc2940a7d.zip
(choose_gtk) fix crash
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index b3c71ff2c..8e6bb6c52 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -262,6 +262,7 @@ sub choose_gtk {
$pixmap_mo->set_from_file($image);
$x_res_combo->entry->set_text($chosen_x_res . "x" . $chosen_y_res);
};
+ $x_res_combo->set_popdown_strings(uniq map { "$_->{X}x$_->{Y}" } sort { $a->{X} <=> $b->{X} } @resolutions);
$set_chosen_resolution->($chosen_x_res, $chosen_y_res);
my $help_sub = $in->interactive_help_sub_display_id('configureX_resolution');
@@ -294,7 +295,6 @@ sub choose_gtk {
$set_chosen_resolution->(max(@{$depth2x_res{$chosen_Depth}}));
}
});
- $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 {
$set_chosen_resolution->($1, $2) if $x_res_combo->entry->get_text =~ /(\d+)x(\d+)/;