diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-06-17 10:21:16 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-06-17 10:21:16 (GMT) |
commit | 485a0f8735af92a5a7d0d01709707fc30eb70ad4 (patch) | |
tree | 2ad634eeb592f8a9d8b483bf1ddf2bf3137b2b52 | |
parent | cf4bb0fd95b65bbce7316ffac726c877ef7ff337 (diff) |
Prefer presentation mode when the document require fullscreen.
2005-06-17 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-window.c: (update_document_mode):
Prefer presentation mode when the document
require fullscreen.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | shell/ev-window.c | 7 |
2 files changed, 11 insertions, 3 deletions
@@ -1,5 +1,12 @@ 2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> + * shell/ev-window.c: (update_document_mode): + + Prefer presentation mode when the document + require fullscreen. + +2005-06-17 Marco Pesenti Gritti <mpg@redhat.com> + * data/evince-ui.xml: * shell/ev-window.c: diff --git a/shell/ev-window.c b/shell/ev-window.c index 8234197..579cf65 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -604,11 +604,12 @@ page_changed_cb (EvPageCache *page_cache, static void update_document_mode (EvWindow *window, EvDocumentMode mode) { - if (mode == EV_DOCUMENT_MODE_FULL_SCREEN) { - ev_window_fullscreen (window); - } else if (mode == EV_DOCUMENT_MODE_PRESENTATION) { + if (mode == EV_DOCUMENT_MODE_PRESENTATION) { ev_window_run_presentation (window); } + else if (mode == EV_DOCUMENT_MODE_FULL_SCREEN) { + ev_window_fullscreen (window); + } } static void |