summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-08 12:54:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-08 12:54:58 +0000
commit6e595219e3ef527de8a927064b4bfade3493acd9 (patch)
tree1265ae232c5fd3ba519d83832f3d7ac54a467168 /perl-install/diskdrake
parent17e459c9a5e3c00fd328b40991e476214da18782 (diff)
downloaddrakx-6e595219e3ef527de8a927064b4bfade3493acd9.tar
drakx-6e595219e3ef527de8a927064b4bfade3493acd9.tar.gz
drakx-6e595219e3ef527de8a927064b4bfade3493acd9.tar.bz2
drakx-6e595219e3ef527de8a927064b4bfade3493acd9.tar.xz
drakx-6e595219e3ef527de8a927064b4bfade3493acd9.zip
do not display "Clear all" (and the other per kind buttons) for the raid tab
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index fb741e499..2de971f89 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -160,6 +160,9 @@ sub general_action_box {
sub per_kind_action_box {
my ($box, $kind) = @_;
$_->widget->destroy foreach $box->children;
+
+ $kind->{type} =~ /hd|lvm/ or return;
+
foreach my $s (diskdrake::interactive::hd_possible_actions($in, kind2hd($kind), $all_hds)) {
gtkadd($box,
gtksignal_connect(new Gtk::Button(translate($s)),