From 6e595219e3ef527de8a927064b4bfade3493acd9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 8 Jul 2002 12:54:58 +0000 Subject: do not display "Clear all" (and the other per kind buttons) for the raid tab --- perl-install/diskdrake/hd_gtk.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install') 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)), -- cgit v1.2.1