[pygobject/pygobject-2-28] [gi-demos] remove fixmes from print demo, fixed in pango
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28] [gi-demos] remove fixmes from print demo, fixed in pango
- Date: Thu, 17 Feb 2011 19:48:40 +0000 (UTC)
commit f57153dd6786858ff2ab79c28227cd021755d693
Author: John (J5) Palmieri <johnp redhat com>
Date: Thu Feb 17 14:47:12 2011 -0500
[gi-demos] remove fixmes from print demo, fixed in pango
demos/gtk-demo/demos/printing.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/demos/gtk-demo/demos/printing.py b/demos/gtk-demo/demos/printing.py
index b210cbf..d0bc6d2 100644
--- a/demos/gtk-demo/demos/printing.py
+++ b/demos/gtk-demo/demos/printing.py
@@ -120,16 +120,12 @@ class PrintingApp:
layout.set_font_description(desc)
layout.set_text(print_data['filename'], -1)
-
- # FIXME: Not annotated correctly
- # (text_width, text_height) = layout.get_pixel_size()
- text_width = 8
- text_height = 8
+ (text_width, text_height) = layout.get_pixel_size()
if text_width > width:
layout.set_width(width)
layout.set_ellipsize(Pango.EllipsizeType.START);
- # FIXME: (text_width, text_height) = layout.get_pixel_size(layout)
+ (text_width, text_height) = layout.get_pixel_size(layout)
cr.move_to ((width - text_width) / 2,
(self.HEADER_HEIGHT - text_height) / 2)
@@ -139,7 +135,7 @@ class PrintingApp:
layout.set_text(page_str, -1)
layout.set_width(-1)
- # FIXME: (text_width, text_height) = layout.get_pixel_size()
+ (text_width, text_height) = layout.get_pixel_size()
cr.move_to(width - text_width - 4,
(self.HEADER_HEIGHT - text_height) / 2)
PangoCairo.show_layout(cr, layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]