]> www.fi.muni.cz Git - evince.git/commitdiff
Page Up/Down should do page jumps in "Best fit" mode. If a user has
authorWouter Bolsterlee <wbolster@cvs.gnome.org>
Thu, 19 Oct 2006 16:06:17 +0000 (16:06 +0000)
committerWouter Bolsterlee <wbolster@src.gnome.org>
Thu, 19 Oct 2006 16:06:17 +0000 (16:06 +0000)
2006-10-19  Wouter Bolsterlee  <wbolster@cvs.gnome.org>

* shell/ev-view.c: (ev_view_scroll):
Page Up/Down should do page jumps in "Best fit" mode.
If a user has explicitly chosen to view exactly one page
at a time, scrolling just a part of the page when
pressing Page Up/Down is not right. Fixes bug #323107.

ChangeLog
shell/ev-view.c

index 0a12617afd8ab1ecbd53d6da72d767bbe33435df..30715a486916064ea79169c08da3b2daba89ada8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-10-19  Wouter Bolsterlee  <wbolster@cvs.gnome.org>
+
+       * shell/ev-view.c: (ev_view_scroll):
+       Page Up/Down should do page jumps in "Best fit" mode.
+       If a user has explicitly chosen to view exactly one page
+       at a time, scrolling just a part of the page when
+       pressing Page Up/Down is not right. Fixes bug #323107.
+
 2006-10-09  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * NEWS:
index 4a2161bef40aabcfc1a9db844911f019614845b1..3da5e83fe260921e190e7ade479b7608f4c43805 100644 (file)
@@ -581,7 +581,7 @@ ev_view_scroll (EvView        *view,
 
        view->jump_to_find_result = FALSE;
 
-       if (view->presentation) {
+       if (view->presentation || view->sizing_mode == EV_SIZING_BEST_FIT) {
                switch (scroll) {
                        case EV_SCROLL_PAGE_BACKWARD:
                        case EV_SCROLL_STEP_BACKWARD: