summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-02-20 14:38:41 -0500
committerVictor Kareh <[email protected]>2019-03-08 09:50:00 -0500
commit96b1b4d465f5fdb727938d36f3a9027cb8581384 (patch)
tree026f36abf47e37eda54efb580f2496022e314283
parentdb25dddc371d1ebb2de344de6b1adf01f4df5cb8 (diff)
downloadeom-96b1b4d465f5fdb727938d36f3a9027cb8581384.tar.bz2
eom-96b1b4d465f5fdb727938d36f3a9027cb8581384.tar.xz
Use persistent page setup
-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 593a894..5b21202 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -2146,10 +2146,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,
@@ -2183,6 +2183,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)