[Xfce4-commits] <exo:master> Fix ellipsizing in the python examples (bug #6187).

Nick Schermer noreply at xfce.org
Mon Feb 15 12:22:01 CET 2010


Updating branch refs/heads/master
         to bc06b70641e82c6d9854ee13d50943105d06f37a (commit)
       from d2ea8fa46a1490a2d2666db0898de843b9fb62d4 (commit)

commit bc06b70641e82c6d9854ee13d50943105d06f37a
Author: Adam Plumb <adamplumb at gmail.com>
Date:   Mon Feb 15 12:15:37 2010 +0100

    Fix ellipsizing in the python examples (bug #6187).
    
    exo.EllipsizedLabel was dropped in the 0.5 release. Use the
    Gtk equivalent instead.

 python/examples/ellipsizing.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/python/examples/ellipsizing.py b/python/examples/ellipsizing.py
index b9eaa58..a06e49f 100755
--- a/python/examples/ellipsizing.py
+++ b/python/examples/ellipsizing.py
@@ -33,7 +33,7 @@ import gobject
 import gtk
 
 import pyexo
-pyexo.require('0.3')
+pyexo.require('0.5')
 import exo
 
 
@@ -58,7 +58,7 @@ class EllipsizingTree(gtk.TreeView):
 
         column = gtk.TreeViewColumn('Description')
         renderer = exo.CellRendererEllipsizedText()
-        renderer.set_property('ellipsize', exo.PANGO_ELLIPSIZE_END)
+        renderer.set_property('ellipsize', "end")
         renderer.set_property('ellipsize-set', True)
         column.pack_start(renderer, True)
         column.add_attribute(renderer, 'text', 1)
@@ -78,9 +78,8 @@ class EllipsizingWindow(gtk.Window):
         self.add(vbox)
         vbox.show()
 
-        label = exo.EllipsizedLabel('Resize this window to see ' \
+        label = gtk.Label('Resize this window to see ' \
                                     'the ellipsizing effects')
-        label.set_ellipsize(exo.PANGO_ELLIPSIZE_MIDDLE)
         vbox.pack_start(label, False, True, 0)
         label.show()
 



More information about the Xfce4-commits mailing list