]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view.c
Do not connect selection changed signal more than once. Fixes bug #349433.
[evince.git] / shell / ev-view.c
index 513ba871bae2407f4dcdd3b23a61e6dc41764e8e..cd20a8c9154e43a83f06511733a35eb342f89a4a 100644 (file)
@@ -4884,6 +4884,13 @@ ev_view_next_page (EvView *view)
        if (!view->page_cache)
                return FALSE;
 
+       if (view->presentation &&
+           (view->presentation_state == EV_PRESENTATION_BLACK ||
+            view->presentation_state == EV_PRESENTATION_WHITE)) {
+               ev_view_reset_presentation_state (view);
+               return FALSE;
+       }
+       
        ev_view_presentation_transition_stop (view);
        ev_view_reset_presentation_state (view);
        
@@ -4926,6 +4933,13 @@ ev_view_previous_page (EvView *view)
                return TRUE;
        }
 
+       if (view->presentation &&
+           (view->presentation_state == EV_PRESENTATION_BLACK ||
+            view->presentation_state == EV_PRESENTATION_WHITE)) {
+               ev_view_reset_presentation_state (view);
+               return FALSE;
+       }
+
        ev_view_reset_presentation_state (view);
 
        page = ev_page_cache_get_current_page (view->page_cache);