From a918ec2236eef4a24396eec7a89e6b8bdc0ee533 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 3 Jun 2014 08:39:37 -0400 Subject: [PATCH] Fix scrolling the chanview on Unix Fixes #948 --- src/fe-gtk/chanview-tree.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fe-gtk/chanview-tree.c b/src/fe-gtk/chanview-tree.c index 4a1682ba..261304db 100644 --- a/src/fe-gtk/chanview-tree.c +++ b/src/fe-gtk/chanview-tree.c @@ -73,8 +73,8 @@ cv_tree_click_cb (GtkTreeView *tree, GdkEventButton *event, chanview *cv) return ret; } -static void -cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event) +static gboolean +cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, gpointer user_data) { if (prefs.hex_gui_tab_scrollchans) { @@ -82,7 +82,11 @@ cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event) mg_switch_page (1, 1); else if (event->direction == GDK_SCROLL_UP) mg_switch_page (1, -1); + + return TRUE; } + + return FALSE; } static void