From 14606876e9d9f064719ce10cec8aebd2de6e5972 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 20 May 2006 14:29:51 +0000 Subject: update print editor example to match gtk+ api changes --- examples/pygtk-demo/demos/print_editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/pygtk-demo') diff --git a/examples/pygtk-demo/demos/print_editor.py b/examples/pygtk-demo/demos/print_editor.py index 1c23ac68..4ed8e056 100644 --- a/examples/pygtk-demo/demos/print_editor.py +++ b/examples/pygtk-demo/demos/print_editor.py @@ -180,11 +180,12 @@ def begin_print(operation, context, print_data): page_height = 0 page_height += line_height - operation.set_nr_of_pages(len(page_breaks) + 1) + operation.set_n_pages(len(page_breaks) + 1) print_data.page_breaks = page_breaks def draw_page(operation, context, page_nr, print_data): + assert isinstance(print_data.page_breaks, list) if page_nr == 0: start = 0 else: -- cgit v1.2.1