From 2c6259e4495cdf0832dad9b14c0025df6bcc6488 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 24 Oct 2013 19:05:44 +0530 Subject: shell: Do not open single page pdfs in dual mode by default Single page pdfs will now open in full window even if the default mode is dual mode. This will apply to pdfs that are opened for first time, otherwise user preferences are honored. https://bugzilla.gnome.org/show_bug.cgi?id=547098 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-14&id=5339558 --- shell/ev-window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/ev-window.c b/shell/ev-window.c index 0e2f42c0..ab8a7c07 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1308,6 +1308,9 @@ setup_document_from_metadata (EvWindow *window) ev_metadata_get_int (window->priv->metadata, "window_height", &height)) return; /* size was already set in setup_size_from_metadata */ + if (n_pages == 1) + ev_document_model_set_dual_page (window->priv->model, FALSE); + g_settings_get (window->priv->default_settings, "window-ratio", "(dd)", &width_ratio, &height_ratio); if (width_ratio > 0. && height_ratio > 0.) { gdouble document_width; -- cgit v1.2.1