]> www.fi.muni.cz Git - evince.git/commitdiff
Repair gorizontal scrolling with shift. Fixes bug #483412.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Mon, 14 Jan 2008 22:31:40 +0000 (22:31 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 14 Jan 2008 22:31:40 +0000 (22:31 +0000)
2008-01-15  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* shell/ev-view.c: (ev_view_scroll_event):

Repair gorizontal scrolling with shift. Fixes
bug #483412.

svn path=/trunk/; revision=2826

ChangeLog
shell/ev-view.c

index 958934fb1041741279613b4593febfc070b65b45..ece8c4e27b99e014ff8d59e35af3e125761a0389 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-15  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-view.c: (ev_view_scroll_event):
+       
+       Repair gorizontal scrolling with shift. Fixes
+       bug #483412.
+
 2008-01-13  Carlos Garcia Campos  <carlosgc@gnome.org>
        
        * MAINTAINERS:
index 0fd2834aeb6b03f89004eaf6d90259012be76709..cb2d0265fac6fd59a39d216bbe982e2c404e268b 100644 (file)
@@ -2385,15 +2385,16 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
        }
 
        view->jump_to_find_result = FALSE;
+
        /* Shift+Wheel scrolls the in the perpendicular direction */
        if (state & GDK_SHIFT_MASK) {
                if (event->direction == GDK_SCROLL_UP)
                        event->direction = GDK_SCROLL_LEFT;
-               if (event->direction == GDK_SCROLL_LEFT)
+               else if (event->direction == GDK_SCROLL_LEFT)
                        event->direction = GDK_SCROLL_UP;
-               if (event->direction == GDK_SCROLL_DOWN)
+               else if (event->direction == GDK_SCROLL_DOWN)
                        event->direction = GDK_SCROLL_RIGHT;
-               if (event->direction == GDK_SCROLL_RIGHT)
+               else if (event->direction == GDK_SCROLL_RIGHT)
                        event->direction = GDK_SCROLL_DOWN;
 
                event->state &= ~GDK_SHIFT_MASK;