[gnome-disk-utility/new-ui] Avoid showing "Not Partitioned" if there's no media in the drive



commit f73f167dfbc409d7fd7ba2e1a67cd6d288fc385f
Author: David Zeuthen <davidz redhat com>
Date:   Sun Nov 1 10:39:27 2009 -0500

    Avoid showing "Not Partitioned" if there's no media in the drive
    
    Instead show a 'â??'.

 src/palimpsest/gdu-section-drive.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/palimpsest/gdu-section-drive.c b/src/palimpsest/gdu-section-drive.c
index 3f26d2c..10a875f 100644
--- a/src/palimpsest/gdu-section-drive.c
+++ b/src/palimpsest/gdu-section-drive.c
@@ -160,8 +160,11 @@ gdu_section_drive_update (GduSection *_section)
                 gdu_details_element_set_text (section->priv->partitioning_element, s);
                 g_free (s);
         } else {
-                gdu_details_element_set_text (section->priv->partitioning_element,
-                                              _("Not Partitioned"));
+                if (gdu_device_is_media_available (d)) {
+                        gdu_details_element_set_text (section->priv->partitioning_element, _("Not Partitioned"));
+                } else {
+                        gdu_details_element_set_text (section->priv->partitioning_element, "â??");
+                }
         }
 
         if (gdu_device_drive_ata_smart_get_is_available (d) &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]