]> www.fi.muni.cz Git - evince.git/commitdiff
Prefer presentation mode when the document require fullscreen.
authorMarco Pesenti Gritti <mpg@redhat.com>
Fri, 17 Jun 2005 10:21:16 +0000 (10:21 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 17 Jun 2005 10:21:16 +0000 (10:21 +0000)
2005-06-17  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-window.c: (update_document_mode):

        Prefer presentation mode when the document
        require fullscreen.

ChangeLog
shell/ev-window.c

index 5f6df4a8ed1c81228fbab189ba372e2b20eb7a97..7f0b7dca3317d46a7c517b45d5c0c025332c7f17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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:
index 8234197fda916e9897ed45c3e6f0f972aae4f281..579cf6533a910afb09a4284629d3ae5131105b92 100644 (file)
@@ -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