[gnome-disk-utility/udisks2-port] Only show an icon for the drive, never any text



commit 6f9d3f48127ec3747df2e49c301805d4526eb8c0
Author: David Zeuthen <davidz redhat com>
Date:   Fri Mar 11 13:40:56 2011 -0500

    Only show an icon for the drive, never any text
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gduvolumegrid.c |    2 +-
 src/palimpsest/gduwindow.c     |   12 ------------
 2 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index d616dbb..f9e4826 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -1681,7 +1681,7 @@ recompute_grid (GduVolumeGrid *grid)
     {
       element = g_new0 (GridElement, 1);
       element->type = GDU_VOLUME_GRID_ELEMENT_TYPE_CONTAINER;
-      element->fixed_width = 150;
+      element->fixed_width = 40;
       element->offset = 0;
       element->size = 0;
       element->markup = g_strdup (grid->container_markup);
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 93332f0..cfb18fc 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -624,7 +624,6 @@ setup_device_page (GduWindow         *window,
   if (lun != NULL)
     {
       GList *block_devices;
-      GString *str;
       gchar *lun_name;
       gchar *lun_desc;
       GIcon *lun_icon;
@@ -639,19 +638,8 @@ setup_device_page (GduWindow         *window,
                                 &lun_desc,
                                 &lun_icon,
                                 &lun_media_icon);
-      str = g_string_new (NULL);
-      g_string_append_printf (str,
-                              "<b>"
-                              "%s\n"
-                              "%s",
-                              lun_desc,
-                              lun_name);
-      g_string_append (str, "</b>");
-      gdu_volume_grid_set_container_markup (GDU_VOLUME_GRID (window->volume_grid),
-                                            str->str);
       gdu_volume_grid_set_container_icon (GDU_VOLUME_GRID (window->volume_grid),
                                           lun_icon);
-      g_string_free (str, TRUE);
 
       gdu_volume_grid_set_container_visible (GDU_VOLUME_GRID (window->volume_grid), TRUE);
       if (block_devices != NULL)



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