[pygobject] [gtk-demo] printing.py: fix Pango.EllipsizeType > Pango.EllipsizeMode & get_pixel_size



commit 7829dae1cdb8697a19c2b5e158ef0e08f6c2558b
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Aug 22 10:38:04 2011 +0200

    [gtk-demo] printing.py: fix Pango.EllipsizeType > Pango.EllipsizeMode & get_pixel_size

 demos/gtk-demo/demos/printing.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/demos/printing.py b/demos/gtk-demo/demos/printing.py
index 46d8d67..0855df0 100644
--- a/demos/gtk-demo/demos/printing.py
+++ b/demos/gtk-demo/demos/printing.py
@@ -124,8 +124,8 @@ class PrintingApp:
 
         if text_width > width:
             layout.set_width(width)
-            layout.set_ellipsize(Pango.EllipsizeType.START);
-            (text_width, text_height) = layout.get_pixel_size(layout)
+            layout.set_ellipsize(Pango.EllipsizeMode.START);
+            (text_width, text_height) = layout.get_pixel_size()
 
         cr.move_to ((width - text_width) / 2,
                     (self.HEADER_HEIGHT - text_height) / 2)



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