[gnome-disk-utility/udisks2-port] Ellipsize the device name



commit bcdd720170d456a8dc6e9edb40bdb6229e463260
Author: David Zeuthen <davidz redhat com>
Date:   Wed Mar 9 09:59:32 2011 -0500

    Ellipsize the device name
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gduwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 9b77b85..9de0cbf 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -261,6 +261,9 @@ gdu_window_constructed (GObject *object)
                                        "gicon", GDU_DEVICE_TREE_MODEL_COLUMN_ICON,
                                        NULL);
   renderer = gtk_cell_renderer_text_new ();
+  g_object_set (G_OBJECT (renderer),
+                "ellipsize", PANGO_ELLIPSIZE_END,
+                NULL);
   gtk_tree_view_column_pack_start (column, renderer, FALSE);
   gtk_tree_view_column_set_attributes (column,
                                        renderer,



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