From 86c4e407e94a92cf4e467e35981afdf999acae31 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 1 Sep 2012 09:45:48 +0000 Subject: [PATCH] GTK3: conversion of method custom svn: r20304 --- src/plugins/docgen/gtkprint.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/plugins/docgen/gtkprint.py b/src/plugins/docgen/gtkprint.py index 58b288034..d80d458ef 100644 --- a/src/plugins/docgen/gtkprint.py +++ b/src/plugins/docgen/gtkprint.py @@ -142,11 +142,9 @@ def paperstyle_to_pagesetup(paper_style): else: paper_width = gramps_paper_size.get_height() * 10 paper_height = gramps_paper_size.get_width() * 10 - paper_size = Gtk.paper_size_new_custom("custom", - "Custom Size", - paper_width, - paper_height, - Gtk.Unit.MM) + paper_size = Gtk.PaperSize.new_custom("custom", "Custom Size", + paper_width, paper_height, + Gtk.Unit.MM) log.debug("Selected paper size: (%f,%f)" % (paper_width, paper_height)) page_setup = Gtk.PageSetup()