[evince] shell: Do not open single page pdfs in dual mode by default
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] shell: Do not open single page pdfs in dual mode by default
- Date: Tue, 29 Oct 2013 08:44:51 +0000 (UTC)
commit 5339558ccebf030edfc2122500a5343f2072214e
Author: raama <spandana babbula gmail com>
Date: Thu Oct 24 19:05:44 2013 +0530
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
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 3291949..ff5505a 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1224,6 +1224,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]