GTK3: conversion of method custom
svn: r20304
This commit is contained in:
parent
7d96db40ed
commit
86c4e407e9
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user