[gnome-control-center] Sound: Fix scroll event handling of channel bars



commit 31c90f3ad593d9520d4ce7043285d78d7075342d
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 10 21:43:09 2011 -0500

    Sound: Fix scroll event handling of channel bars
    
    Scrolling in any direction always went down. Very frustrating
    experience...
    https://bugzilla.gnome.org/show_bug.cgi?id=644462

 panels/sound/gvc-channel-bar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/sound/gvc-channel-bar.c b/panels/sound/gvc-channel-bar.c
index a0e5a7f..089088d 100644
--- a/panels/sound/gvc-channel-bar.c
+++ b/panels/sound/gvc-channel-bar.c
@@ -449,7 +449,7 @@ gvc_channel_bar_scroll (GvcChannelBar *bar, GdkScrollDirection direction)
                 /* Switch side scroll to vertical */
                 if (direction == GDK_SCROLL_RIGHT)
                         direction = GDK_SCROLL_UP;
-                else if (GDK_SCROLL_LEFT)
+                else if (direction == GDK_SCROLL_LEFT)
                         direction = GDK_SCROLL_DOWN;
         }
 



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