[gtk+/gtk-3-8] combobox: Set GDK_SCROLL_MASK on the eventbox in appears-as-list mode



commit d95b84c0ea368c41cb76c074a3257d3ba5f61298
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 20 12:53:57 2013 +0100

    combobox: Set GDK_SCROLL_MASK on the eventbox in appears-as-list mode
    
    This is so the scroll wheel works in both modes, and there's no behavioral
    change depending on a style property.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702663

 gtk/gtkcombobox.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 794cd00..d0075eb 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -3474,6 +3474,7 @@ gtk_combo_box_list_setup (GtkComboBox *combo_box)
       gtk_cell_view_set_background_rgba (GTK_CELL_VIEW (priv->cell_view), &color);
 
       priv->box = gtk_event_box_new ();
+      gtk_widget_add_events (priv->box, GDK_SCROLL_MASK);
       gtk_event_box_set_visible_window (GTK_EVENT_BOX (priv->box),
                                         FALSE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]