[pygtk] Fix GtkPrintContext example, bug 637753
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Fix GtkPrintContext example, bug 637753
- Date: Fri, 21 Jan 2011 00:44:52 +0000 (UTC)
commit ac85914365497d79d3e0704c75c7d78d6b3d20e8
Author: John Stowers <john stowers gmail com>
Date: Sat Dec 25 00:04:01 2010 +1300
Fix GtkPrintContext example, bug 637753
docs/reference/pygtk-gtkprintcontext.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/docs/reference/pygtk-gtkprintcontext.xml b/docs/reference/pygtk-gtkprintcontext.xml
index 9e3c4ae..ae4fed3 100644
--- a/docs/reference/pygtk-gtkprintcontext.xml
+++ b/docs/reference/pygtk-gtkprintcontext.xml
@@ -123,13 +123,13 @@ def draw_page(operation, context, page_nr):
cr.stroke()
# Draw some text
- layout = context.create_layout()
+ layout = cr.create_layout()
layout.set_text("Hello World! Printing is easy")
desc = pango.FontDescription("sans 28")
layout.set_font_description(desc)
cr.move_to(30, 20)
- layout.layout_path()
+ cr.layout_path(layout)
# Font Outline
cr.set_source_rgb(0.93, 1.0, 0.47)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]