diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 10:29:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-27 10:29:14 +0000 |
commit | 8dde3efdac1b068c68c4e68cab5ac9bb307da2a9 (patch) | |
tree | fc5f3db4fe0b21bf66f02a59083e7ae24266dd14 /perl-install/diskdrake | |
parent | 6a66c03e186fa398c9ebb18c59fea39dc8c3e7f0 (diff) | |
download | drakx-backup-do-not-use-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar drakx-backup-do-not-use-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.gz drakx-backup-do-not-use-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.bz2 drakx-backup-do-not-use-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.tar.xz drakx-backup-do-not-use-8dde3efdac1b068c68c4e68cab5ac9bb307da2a9.zip |
- diskdrake
o fix coloring "Other" partitions (#32845)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 7 |
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); } |