From 485a0f8735af92a5a7d0d01709707fc30eb70ad4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 17 Jun 2005 10:21:16 +0000 Subject: [PATCH] Prefer presentation mode when the document require fullscreen. 2005-06-17 Marco Pesenti Gritti * shell/ev-window.c: (update_document_mode): Prefer presentation mode when the document require fullscreen. --- ChangeLog | 7 +++++++ shell/ev-window.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5f6df4a8..7f0b7dca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-17 Marco Pesenti Gritti + + * shell/ev-window.c: (update_document_mode): + + Prefer presentation mode when the document + require fullscreen. + 2005-06-17 Marco Pesenti Gritti * data/evince-ui.xml: diff --git a/shell/ev-window.c b/shell/ev-window.c index 8234197f..579cf653 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 -- 2.43.5