summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-03-06 01:27:43 +0000
committerdamien <damien@mandriva.com>2001-03-06 01:27:43 +0000
commitdda6c299a8619968a7501be5ec97222460049764 (patch)
treeb7026f4452c18c8936fd10d976aff70600522488 /perl-install
parent6f54840274c5f099d84c54f3024d3adcf700c336 (diff)
downloaddrakx-backup-do-not-use-dda6c299a8619968a7501be5ec97222460049764.tar
drakx-backup-do-not-use-dda6c299a8619968a7501be5ec97222460049764.tar.gz
drakx-backup-do-not-use-dda6c299a8619968a7501be5ec97222460049764.tar.bz2
drakx-backup-do-not-use-dda6c299a8619968a7501be5ec97222460049764.tar.xz
drakx-backup-do-not-use-dda6c299a8619968a7501be5ec97222460049764.zip
cleaned png displaying
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfigurator.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 614d16e91..36d2a7f01 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -633,7 +633,7 @@ sub chooseResolutionsGtk($$;$) {
),
0, gtkadd($W->create_okcancel,
$::isEmbedded ?
- gtksignal_connect(new Gtk::Button(_("Expert Mode")), clicked => sub { system ("XFdrake --expert --testing"); }) :
+ gtksignal_connect(new Gtk::Button(_("Expert Mode")), clicked => sub { system ("XFdrake --expert"); }) :
gtksignal_connect(new Gtk::Button(_("Show all")), clicked => sub { $W->{retval} = 1; $chosen_w = 0; Gtk->main_quit })),
));
$depth_combo->disable_activate;
@@ -644,9 +644,10 @@ sub chooseResolutionsGtk($$;$) {
$chosen_depth = $txt2depth{untranslate($depth_combo->entry->get_text, keys %txt2depth)};
my $w = $card->{depth}{$chosen_depth}[0][0];
$chosen_w > $w and &$set($w2widget{$chosen_w = $w});
- $pix_colors->set(gtkcreate_png("colors8.png")) if $chosen_depth >= 8;
- $pix_colors->set(gtkcreate_png("colors16.png")) if $chosen_depth >= 15;
- $pix_colors->set(gtkcreate_png("colors.png")) if $chosen_depth >=24;
+ $pix_colors->set(gtkcreate_png(
+ $chosen_depth >= 24 ? "colors.png" :
+ $chosen_depth >= 15 ? "colors16.png" :
+ "colors8.png"));
});
if ($::isEmbedded) {
$w2_combo->disable_activate;