[gnome-flashback] sound-applet: ignore scroll event without direction



commit 29e2e8fd88a0368143f8ab1b8f9faf3db83d7116
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Sep 17 02:05:07 2015 +0300

    sound-applet: ignore scroll event without direction
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754981

 gnome-flashback/libsound-applet/gvc-channel-bar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libsound-applet/gvc-channel-bar.c 
b/gnome-flashback/libsound-applet/gvc-channel-bar.c
index f11f5bc..c54ffdf 100644
--- a/gnome-flashback/libsound-applet/gvc-channel-bar.c
+++ b/gnome-flashback/libsound-applet/gvc-channel-bar.c
@@ -378,7 +378,8 @@ gvc_channel_bar_scroll (GvcChannelBar *bar, GdkEventScroll *event)
         g_return_val_if_fail (bar != NULL, FALSE);
         g_return_val_if_fail (GVC_IS_CHANNEL_BAR (bar), FALSE);
 
-        direction = event->direction;
+        if (!gdk_event_get_scroll_direction ((GdkEvent*) event, &direction))
+                return FALSE;
 
         if (bar->priv->orientation == GTK_ORIENTATION_VERTICAL) {
                 if (direction == GDK_SCROLL_LEFT || direction == GDK_SCROLL_RIGHT)


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