summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-03-19 07:06:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-03-19 07:08:01 -0400
commitd7cf9d7b84d3e9188baf6637809b4bb61a48453c (patch)
treedb702d7f6e1f8fdec034259f040262cdee0e1828 /gtk/gtkcombobox.c
parente7719747b094a6420ef8d5494c8561d49ddf918c (diff)
downloadgtk+-d7cf9d7b84d3e9188baf6637809b4bb61a48453c.tar.gz
combobox: Make scrolling work again
Select for scroll events, making it possible to use a scroll wheel to change the combobox.
Diffstat (limited to 'gtk/gtkcombobox.c')
-rw-r--r--gtk/gtkcombobox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 6cbcb39192..53fe1b1ea3 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -3133,6 +3133,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
gtk_container_add (GTK_CONTAINER (priv->box), priv->arrow);
+ gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
gtk_widget_show_all (priv->button);
}
@@ -3149,6 +3150,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
gtk_container_add (GTK_CONTAINER (priv->button), priv->arrow);
+ gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
gtk_widget_show_all (priv->button);
}