summaryrefslogtreecommitdiff
path: root/src/eom-window.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-02-20 14:38:41 -0500
committerlukefromdc <[email protected]>2019-03-08 04:18:39 +0000
commit3701f5ab6eb3213f2c03af9fea1db087b11291ef (patch)
tree1c5a90e314c5383b27245cdf84eef429f48e1413 /src/eom-window.c
parent092efdb0717f4106ec46f37b21141b2992794a59 (diff)
downloadeom-3701f5ab6eb3213f2c03af9fea1db087b11291ef.tar.bz2
eom-3701f5ab6eb3213f2c03af9fea1db087b11291ef.tar.xz
Use persistent page setup
Diffstat (limited to 'src/eom-window.c')
-rw-r--r--src/eom-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 7b748c8..5e9109d 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -2176,10 +2176,10 @@ eom_window_print (EomWindow *window)
/* Make sure the window stays valid while printing */
g_object_ref (window);
- if (window->priv->page_setup !=NULL)
+ if (window->priv->page_setup != NULL)
page_setup = g_object_ref (window->priv->page_setup);
else
- page_setup = NULL;
+ page_setup = eom_print_get_page_setup ();
print = eom_print_operation_new (window->priv->image,
print_settings,
@@ -2213,6 +2213,7 @@ eom_window_print (EomWindow *window)
if (window->priv->page_setup != NULL)
g_object_unref (window->priv->page_setup);
window->priv->page_setup = g_object_ref (new_page_setup);
+ eom_print_set_page_setup (window->priv->page_setup);
}
if (page_setup != NULL)