mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
combobox: Make scrolling work again
Select for scroll events, making it possible to use a scroll wheel to change the combobox.
This commit is contained in:
parent
e7719747b0
commit
d7cf9d7b84
@ -3133,6 +3133,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
|
|||||||
|
|
||||||
priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
|
priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
|
||||||
gtk_container_add (GTK_CONTAINER (priv->box), priv->arrow);
|
gtk_container_add (GTK_CONTAINER (priv->box), priv->arrow);
|
||||||
|
gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
|
||||||
|
|
||||||
gtk_widget_show_all (priv->button);
|
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);
|
priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
|
||||||
gtk_container_add (GTK_CONTAINER (priv->button), priv->arrow);
|
gtk_container_add (GTK_CONTAINER (priv->button), priv->arrow);
|
||||||
|
gtk_widget_add_events (priv->button, GDK_SCROLL_MASK);
|
||||||
gtk_widget_show_all (priv->button);
|
gtk_widget_show_all (priv->button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user