diff options
author | Carlos Garcia Campos <[email protected]> | 2013-10-24 19:05:44 +0530 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-31 13:28:21 +0200 |
commit | 2c6259e4495cdf0832dad9b14c0025df6bcc6488 (patch) | |
tree | b811426667e37ea53e176d0d9eacd476861d2420 /shell/ev-window.c | |
parent | e3575888c1b7569bc862879dd7da7cbd081d87a1 (diff) | |
download | atril-2c6259e4495cdf0832dad9b14c0025df6bcc6488.tar.bz2 atril-2c6259e4495cdf0832dad9b14c0025df6bcc6488.tar.xz |
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
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |