summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-15 16:48:30 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-15 16:48:30 +0000
commiteec8f979eb8eeaaf6ac25135bd48792168d07547 (patch)
tree7f61aa27d0713d6643b3da2348d1815166f8cb1e /perl-install/standalone
parentb1d9174ea0b26a6fd025630e416bb1c4c8e07e0f (diff)
downloaddrakx-eec8f979eb8eeaaf6ac25135bd48792168d07547.tar
drakx-eec8f979eb8eeaaf6ac25135bd48792168d07547.tar.gz
drakx-eec8f979eb8eeaaf6ac25135bd48792168d07547.tar.bz2
drakx-eec8f979eb8eeaaf6ac25135bd48792168d07547.tar.xz
drakx-eec8f979eb8eeaaf6ac25135bd48792168d07547.zip
- grey theme config instead of hiding it
- use option menus instead of combos - describe user and desktop lists
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakboot24
1 files changed, 16 insertions, 8 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index a1dea17f8..a7783f9f4 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -68,10 +68,10 @@ unless ($::isEmbedded) {
######### menus end
}
-my $user_combo = new Gtk2::Combo;
+my $user_combo = new Gtk2::OptionMenu;
$user_combo->set_popdown_strings(list_users());
$user_combo->entry->set_text($auto_mode->{autologin}) if $auto_mode->{autologin};
-my $desktop_combo = new Gtk2::Combo;
+my $desktop_combo = new Gtk2::OptionMenu;
$desktop_combo->set_popdown_strings(split(' ', `/usr/sbin/chksession -l`));
$desktop_combo->entry->set_text($auto_mode->{desktop}) if $auto_mode->{desktop};
@@ -111,8 +111,7 @@ foreach (all('.')) {
}
my %combo = ('thms' => '', 'lilo' => '', 'boot' => '');
foreach (keys(%combo)) {
- $combo{$_} = gtkset_size_request(Gtk2::Combo->new, 10, -1);
- $combo{$_}->set_value_in_list(1, 0);
+ $combo{$_} = gtkset_size_request(Gtk2::OptionMenu->new, 10, -1);
}
$combo{thms}->set_popdown_strings(@thms);
@@ -277,9 +276,18 @@ gtkadd($window,
gtkpack__(Gtk2::VBox->new(0, 0),
my @auto_buttons = gtkradio((N("Yes, I want autologin with this (user, desktop)")) x 2, N("No, I don't want autologin")),
),
- gtkpack__(my $auto_box = new Gtk2::VBox(0, 10),
- $user_combo,
- $desktop_combo
+ gtkpack__(
+ my $auto_box = Gtk2::HBox->new,
+ gtkpack(
+ Gtk2::VBox->new,
+ Gtk2::Label->new(N("Default user")),
+ Gtk2::Label->new(N("Default desktop")),
+ ),
+ gtkpack(
+ Gtk2::VBox->new,
+ $user_combo,
+ $desktop_combo
+ ),
)
)
)
@@ -303,7 +311,7 @@ $auto_buttons[1]->set_active(1) if !$auto_mode->{autologin};
$x_box->set_sensitive($x_mode);
$auto_box->set_sensitive($auto_mode->{autologin} ? 1 : 0);
$window->show_all;
-$no_bootsplash and $thm_frame->hide;
+$no_bootsplash and $thm_frame->set_sensitive(0);
update_bootloader_label($lilogrub);
gtkflush();
$w->main;