[evince] libview: Update the current page also when pending scroll is to find a location



commit 8709b399d4911702dfbea4670b14deb92cc2f647
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Jul 28 10:45:02 2013 +0200

    libview: Update the current page also when pending scroll is to find a location
    
    Pending scroll SCROLL_TO_FIND_LOCATION, can jump to another page if the
    location is in a different page. We should change the current page in
    the model in this case too.

 libview/ev-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 6a7e9d5..4e75da3 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -737,7 +737,8 @@ view_update_range_and_current_page (EvView *view)
                        }
                }
 
-               if (view->pending_scroll == SCROLL_TO_KEEP_POSITION) {
+               if (view->pending_scroll == SCROLL_TO_KEEP_POSITION ||
+                   view->pending_scroll == SCROLL_TO_FIND_LOCATION) {
                        best_current_page = MAX (best_current_page, view->start_page);
 
                        if (best_current_page >= 0 && view->current_page != best_current_page) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]