[gthumb] fixed mouse wheel navigation with the video viewer again



commit 232794832c62b48ace6e131fcfb5fba50f7fbc02
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Apr 25 22:44:23 2012 +0200

    fixed mouse wheel navigation with the video viewer again
    
    it worked only when going forward

 gthumb/gth-browser.c   |    3 +++
 gthumb/gth-grid-view.c |    5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 090e6c7..f48ad9b 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -5138,6 +5138,9 @@ gth_browser_viewer_scroll_event_cb (GthBrowser     *browser,
 	if (event->state & GDK_CONTROL_MASK)
 		return FALSE;
 
+	if ((event->direction != GDK_SCROLL_UP) && (event->direction != GDK_SCROLL_DOWN))
+		return FALSE;
+
 	if (event->direction == GDK_SCROLL_UP)
 		gth_browser_show_prev_image (browser, FALSE, FALSE);
 	else
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 374fb0a..543a76c 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1789,11 +1789,8 @@ gth_grid_view_scroll_event (GtkWidget      *widget,
 	gdouble        new_value;
 	double         step;
 
-	if (event->direction != GDK_SCROLL_UP &&
-	    event->direction != GDK_SCROLL_DOWN)
-	{
+	if ((event->direction != GDK_SCROLL_UP) && (event->direction != GDK_SCROLL_DOWN))
 		return FALSE;
-	}
 
 	adj = GTH_GRID_VIEW (widget)->priv->vadjustment;
 



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