From 81cdc8713cc4a946780bd1bb7fbef64f50f2b239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 9 May 2017 08:22:41 +0200 Subject: [PATCH] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index e07a183e90..bcdad85a80 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -1943,7 +1943,7 @@ gtk_combo_box_scroll_event (GtkWidget *widget, { GtkComboBox *combo_box = GTK_COMBO_BOX (widget); GtkComboBoxPrivate *priv = combo_box->priv; - gboolean found; + gboolean found = FALSE; GtkTreeIter iter; GtkTreeIter new_iter; @@ -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);