[pybliographer] Set auto ellipsis for GnomeUI.Index listview



commit 7a5f41ad5c73d856cb032bbf537d727dccc36557
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Apr 23 21:19:13 2013 -0700

    Set auto ellipsis for GnomeUI.Index listview
    
    Signed-off-by: Germán Poo-Caamaño <gpoo gnome org>

 Pyblio/GnomeUI/Index.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Pyblio/GnomeUI/Index.py b/Pyblio/GnomeUI/Index.py
index 66c36fc..cc4b86d 100644
--- a/Pyblio/GnomeUI/Index.py
+++ b/Pyblio/GnomeUI/Index.py
@@ -83,8 +83,9 @@ class Index (Connector.Publisher):
         i, self.prefix_columns =  0, i
 
         for f in fields:
-            col = gtk.TreeViewColumn (f, gtk.CellRendererText (),
-                                      text = i)
+            renderer = gtk.CellRendererText ()
+            renderer.set_property ('ellipsize', pango.ELLIPSIZE_END)
+            col = gtk.TreeViewColumn (f, renderer, text=i)
             col.set_resizable (True)
             col.set_clickable (True)
 


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