summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-15 22:21:02 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-15 22:21:02 +0000
commit8e187d972ed59909271d48915eef4af34e7fe068 (patch)
tree9ab1cf4bc2778f42890caed92633da632050120a /perl-install/diskdrake/interactive.pm
parent09d1e8cecc0385d694818ddc6cca3d26fabaff23 (diff)
downloaddrakx-8e187d972ed59909271d48915eef4af34e7fe068.tar
drakx-8e187d972ed59909271d48915eef4af34e7fe068.tar.gz
drakx-8e187d972ed59909271d48915eef4af34e7fe068.tar.bz2
drakx-8e187d972ed59909271d48915eef4af34e7fe068.tar.xz
drakx-8e187d972ed59909271d48915eef4af34e7fe068.zip
split button bars into 3 bars
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm20
1 files changed, 16 insertions, 4 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 9509ab760..25744cfab 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -256,7 +256,7 @@ sub main {
################################################################################
sub general_possible_actions {
my ($_in, $_all_hds) = @_;
- $::expert ? N_("Toggle to normal mode") : N_("Toggle to expert mode");
+ if_($::isInstall, N_("More"));
}
sub Done {
@@ -296,14 +296,26 @@ Quit anyway?", $part->{device}, $part->{mntpoint})) or return if $::isStandalone
################################################################################
# per-hd actions
################################################################################
-sub hd_possible_actions {
- my ($_in, $hd, $_all_hds) = @_;
+sub hd_possible_actions_base {
+ my ($hd) = @_;
(
if_(!$hd->{readonly} || $hd->{getting_rid_of_readonly_allowed}, N_("Clear all")),
if_(!$hd->{readonly} && $::isInstall, N_("Auto allocate")),
- if_($::isInstall, N_("More")),
);
}
+
+sub hd_possible_actions_extra {
+ my ($hd) = @_;
+ $::expert ? N_("Toggle to normal mode") : N_("Toggle to expert mode");
+}
+
+
+sub hd_possible_actions {
+ my ($_in, $hd, $_all_hds) = @_;
+ hd_possible_actions_base($hd);
+ hd_possible_actions_extra($hd);
+}
+
sub hd_possible_actions_interactive {
my ($_in, $_hd, $_all_hds) = @_;
&hd_possible_actions, N_("Hard drive information");