[gnome-disk-utility/udisks2-port] Show "Unknown" if we don't know the type of the partition



commit b6b4fcb154e7747575554ac55e6c0950dc99d733
Author: David Zeuthen <davidz redhat com>
Date:   Mon Oct 31 16:15:32 2011 -0400

    Show "Unknown" if we don't know the type of the partition
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gduwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index a9bdb79..00df5c8 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -1674,6 +1674,8 @@ update_device_page_for_block (GduWindow          *window,
     {
       gchar *s;
       s = udisks_client_get_partition_info (window->client, partition);
+      if (s == NULL)
+        s = g_strdup (C_("partition type", "Unknown"));
       set_markup (window,
                   "devtab-partition-label",
                   "devtab-partition-value-label",



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