Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco 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)
commit485a0f8735af92a5a7d0d01709707fc30eb70ad4 (patch)
tree2ad634eeb592f8a9d8b483bf1ddf2bf3137b2b52 /shell
parentcf4bb0fd95b65bbce7316ffac726c877ef7ff337 (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.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c7
1 files changed, 4 insertions, 3 deletions
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