summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-04 05:05:55 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-04 05:05:55 +0000
commitb8f0febfe65dde69e634753f63462e0d31642ece (patch)
treebc600ecc2b1b227f90e3943e3f36416ddb52737b /perl-install/standalone
parentad47fddb99b751abecdde91eab13120800c9b445 (diff)
downloaddrakx-b8f0febfe65dde69e634753f63462e0d31642ece.tar
drakx-b8f0febfe65dde69e634753f63462e0d31642ece.tar.gz
drakx-b8f0febfe65dde69e634753f63462e0d31642ece.tar.bz2
drakx-b8f0febfe65dde69e634753f63462e0d31642ece.tar.xz
drakx-b8f0febfe65dde69e634753f63462e0d31642ece.zip
fix typo (really handle progress bar color)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/draksplash6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/standalone/draksplash b/perl-install/standalone/draksplash
index 02341004c..6699bf5e2 100755
--- a/perl-install/standalone/draksplash
+++ b/perl-install/standalone/draksplash
@@ -177,12 +177,12 @@ sub choose_image {
sub choose_color() {
my $color = gtkshow(Gtk2::ColorSelectionDialog->new(N("ProgressBar color selection")));
- my @rgb = $theme{boot_conf}{pc} =~ m/0x(.{2})(.{2})(.{2})/ && map { hex($_)/255 } ($1, $2, $3);
+ my @rgb = $theme{conf}{pc} =~ m/0x(.{2})(.{2})(.{2})/ && map { hex($_)/255 } ($1, $2, $3);
$color->colorsel->set_current_color(gtkcolor(@rgb));
$color->cancel_button->signal_connect(clicked => sub { $color->destroy });
$color->ok_button->signal_connect(clicked => sub {
my $colour = $color->colorsel->get_current_color;
- $theme{boot_conf}{pc} = "0x" . join('', map { print "$_\n"; sprintf("%x", $_*255) } $colour->red, $colour->green, $colour->blue);
+ $theme{conf}{pc} = "0x" . join('', map { print "$_\n"; sprintf("%x", $_*255) } $colour->red, $colour->green, $colour->blue);
$color->destroy;
});
}
@@ -225,6 +225,8 @@ sub update_scales_for_resolution() {
$adj{$_}->upper(get_scale_max($_)) foreach keys %adj;
}
sub update_scale_values_from_conf() {
+ # this is broken !
+ # use ->set_value
$adj{$_}{value} = $theme{conf}{$_} foreach keys %adj;
}