[gtk+/wip/carlosg/event-delivery] combobox: Only react to UP/DOWN scroll events
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery] combobox: Only react to UP/DOWN scroll events
- Date: Tue, 9 May 2017 06:21:03 +0000 (UTC)
commit 14080d24dac93d7e13f1d56b34fb965c1e4ff9ca
Author: Timm Bäder <mail baedert org>
Date: Tue May 9 08:22:41 2017 +0200
combobox: Only react to UP/DOWN scroll events
The old else block scrolled down for everything except GDK_SCROLL_UP
scroll events, e.g. for smooth scroll events.
gtk/gtkcombobox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index e07a183..fd9b01a 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1953,7 +1953,7 @@ gtk_combo_box_scroll_event (GtkWidget *widget,
if (event->direction == GDK_SCROLL_UP)
found = tree_prev (combo_box, priv->model,
&iter, &new_iter);
- else
+ else if (event->direction == GDK_SCROLL_DOWN)
found = tree_next (combo_box, priv->model,
&iter, &new_iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]