summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-27 10:29:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-27 10:29:14 +0000
commit8dde3efdac1b068c68c4e68cab5ac9bb307da2a9 (patch)
treefc5f3db4fe0b21bf66f02a59083e7ae24266dd14 /perl-install/diskdrake
parent6a66c03e186fa398c9ebb18c59fea39dc8c3e7f0 (diff)
downloaddrakx-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar
drakx-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.gz
drakx-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.bz2
drakx-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.xz
drakx-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.zip
- diskdrake
o fix coloring "Other" partitions (#32845)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index 64a2b9a48..a2c7f5589 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -314,7 +314,10 @@ sub create_buttons4partitions {
last;
}
});
- $w->set_name("PART_" . fs::type::part2type_name($entry));
+ my @colorized_fs_types = qw(ext3 xfs swap vfat ntfs ntfs-3g);
+ $w->set_name("PART_" . (isEmpty($entry) ? 'empty' :
+ $entry->{fs_type} && member($entry->{fs_type}, @colorized_fs_types) ? $entry->{fs_type} :
+ 'other'));
$w->set_size_request($entry->{size} * $ratio + $minwidth, 0);
gtkpack__($kind->{display_box}, $w);
if ($current_entry && fsedit::are_same_partitions($current_entry, $entry)) {
@@ -358,7 +361,7 @@ sub filesystems_button_box() {
my $t = $name2fs_type{$_};
$w->signal_connect(clicked => sub { try_('', \&createOrChangeType, $t, current_hd(), current_part()) });
$w->can_focus(0);
- $w->set_name($_);
+ $w->set_name("PART_$t");
$w;
} @types);
}