diff options
-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 |