From: Marco Pesenti Gritti Date: Fri, 17 Jun 2005 10:21:16 +0000 (+0000) Subject: Prefer presentation mode when the document require fullscreen. X-Git-Tag: EVINCE_0_3_3~242 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=485a0f8735af92a5a7d0d01709707fc30eb70ad4;p=evince.git 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. --- 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