GTK3: conversion of method custom

svn: r20304
This commit is contained in:
Benny Malengier 2012-09-01 09:45:48 +00:00
parent 7d96db40ed
commit 86c4e407e9

View File

@ -142,10 +142,8 @@ def paperstyle_to_pagesetup(paper_style):
else: else:
paper_width = gramps_paper_size.get_height() * 10 paper_width = gramps_paper_size.get_height() * 10
paper_height = gramps_paper_size.get_width() * 10 paper_height = gramps_paper_size.get_width() * 10
paper_size = Gtk.paper_size_new_custom("custom", paper_size = Gtk.PaperSize.new_custom("custom", "Custom Size",
"Custom Size", paper_width, paper_height,
paper_width,
paper_height,
Gtk.Unit.MM) Gtk.Unit.MM)
log.debug("Selected paper size: (%f,%f)" % (paper_width, paper_height)) log.debug("Selected paper size: (%f,%f)" % (paper_width, paper_height))