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



commit da86918c32ac7c295941a4cfc3caf628e7167b7c
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 ceb0235..951db19 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -3483,6 +3483,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]