Fix scrolling the chanview on Unix

Fixes #948
This commit is contained in:
TingPing 2014-06-03 08:39:37 -04:00
parent af7e6d3e20
commit a918ec2236

View File

@ -73,8 +73,8 @@ cv_tree_click_cb (GtkTreeView *tree, GdkEventButton *event, chanview *cv)
return ret; return ret;
} }
static void static gboolean
cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event) cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, gpointer user_data)
{ {
if (prefs.hex_gui_tab_scrollchans) if (prefs.hex_gui_tab_scrollchans)
{ {
@ -82,7 +82,11 @@ cv_tree_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event)
mg_switch_page (1, 1); mg_switch_page (1, 1);
else if (event->direction == GDK_SCROLL_UP) else if (event->direction == GDK_SCROLL_UP)
mg_switch_page (1, -1); mg_switch_page (1, -1);
return TRUE;
} }
return FALSE;
} }
static void static void