summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-06-03 08:39:37 -0400
committerTingPing <tingping@tingping.se>2014-06-03 08:39:37 -0400
commita918ec2236eef4a24396eec7a89e6b8bdc0ee533 (patch)
treec6f85708932450f8adda9cedc539ad8cacfc9e33
parentaf7e6d3e2021715c8d7fc42479ad8ee9f0314cdf (diff)
Fix scrolling the chanview on Unix
Fixes #948
-rw-r--r--src/fe-gtk/chanview-tree.c8
1 files 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