summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-03 11:45:08 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-03 11:45:08 +0000
commit954e51dc037721f49e4979c7ef1c995c8aca1619 (patch)
treeac57382a52292eb579faf065485e06f0746b9f1e /perl-install/standalone
parenta90b024a14f076706a9fe3cc430d0d5a3447b6e9 (diff)
downloaddrakx-954e51dc037721f49e4979c7ef1c995c8aca1619.tar
drakx-954e51dc037721f49e4979c7ef1c995c8aca1619.tar.gz
drakx-954e51dc037721f49e4979c7ef1c995c8aca1619.tar.bz2
drakx-954e51dc037721f49e4979c7ef1c995c8aca1619.tar.xz
drakx-954e51dc037721f49e4979c7ef1c995c8aca1619.zip
new theme creation functions
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakboot10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index f51699e19..4953e6b1d 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -105,13 +105,13 @@ sub splash_choice() {
$cur_res = '800x600';
}
- my $theme = bootsplash::read_theme_config($cur_res);
+ my $theme = bootsplash::themes_read_sysconfig($cur_res);
$no_bootsplash and $theme->{enabled} = 0;
my $boot_pic = gtkcreate_img($bootsplash::default_thumbnail);
change_image($boot_pic, $theme->{name}, $cur_res);
- my $theme_combo = gtkset_size_request(Gtk2::ComboBox->new_with_strings([ bootsplash::list_themes($cur_res) ], $theme->{name}), 10, -1);
+ my $theme_combo = gtkset_size_request(Gtk2::ComboBox->new_with_strings([ bootsplash::themes_list_for_resolution($cur_res) ], $theme->{name}), 10, -1);
$theme_combo->entry->signal_connect(changed => sub {
$theme->{name} = $theme_combo->entry->get_text;
change_image($boot_pic, $theme->{name}, $cur_res);
@@ -155,9 +155,9 @@ sub splash_choice() {
sub {
bootsplash::set_logo_console($theme->{keep_logo});
if ($theme->{enabled}) {
- bootsplash::switch_theme($theme->{name});
+ bootsplash::switch($theme->{name});
} else {
- bootsplash::remove_theme();
+ bootsplash::remove();
}
});
}
@@ -234,7 +234,7 @@ sub lilo_choice() {
sub change_image {
my ($boot_pic, $theme, $res) = @_;
- my $img_file = bootsplash::get_theme_image($theme, $res);
+ my $img_file = bootsplash::theme_get_image_for_resolution($theme, $res);
-f $img_file or return;
my $boot_pixbuf = gtkcreate_pixbuf($img_file);
$boot_pixbuf = $boot_pixbuf->scale_simple(300, 200, 'nearest');