[gnome-disk-utility/new-ui] For swap volumes, show "Swap Space" instead of "–" in the volume details



commit 7e4002f627b4acf29da14e929b0283136b930ae4
Author: David Zeuthen <davidz redhat com>
Date:   Sun Nov 1 10:42:27 2009 -0500

    For swap volumes, show "Swap Space"  instead of "â??" in the volume details

 src/palimpsest/gdu-section-volumes.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gdu-section-volumes.c b/src/palimpsest/gdu-section-volumes.c
index 04005fe..d0e670a 100644
--- a/src/palimpsest/gdu-section-volumes.c
+++ b/src/palimpsest/gdu-section-volumes.c
@@ -1610,6 +1610,10 @@ gdu_section_volumes_update (GduSection *_section)
                         show_luks_forget_passphrase_button = TRUE;
                 show_luks_change_passphrase_button = TRUE;
 
+        } else if (g_strcmp0 (id_usage, "other") == 0 && g_strcmp0 (id_type, "swap") == 0) {
+
+                gdu_details_element_set_text (section->priv->usage_element, _("Swap Space"));
+
         } else if (d != NULL && gdu_device_is_linux_md_component (d)) {
 
                 gdu_details_element_set_text (section->priv->usage_element, _("RAID Component"));



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