summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-03-02 22:53:22 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-03-02 23:02:57 -0500
commitff37a04c96a249f4cd4ee0f0a2ee79887fd0ffbc (patch)
tree4af9aafef3d331b99d8e2f498d4ce81a0f0fa967 /gtk/gtkpathbar.c
parent9687ac33b8920d392ca4deb882287d9938d24c58 (diff)
downloadgtk+-ff37a04c96a249f4cd4ee0f0a2ee79887fd0ffbc.tar.gz
pathbar: Fix scrolling
We need to select for scroll events on the buttons now, selecting for button events no longer gives us scrolling as a side-effect.
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 5d20472919..d8b9f9e526 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -158,6 +158,7 @@ get_slider_button (GtkPathBar *path_bar,
atk_object_set_name (atk_obj, _("Down Path"));
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+ gtk_widget_add_events (button, GDK_SCROLL_MASK);
gtk_container_add (GTK_CONTAINER (button),
gtk_arrow_new (arrow_type, GTK_SHADOW_OUT));
gtk_container_add (GTK_CONTAINER (path_bar), button);
@@ -1611,6 +1612,7 @@ make_directory_button (GtkPathBar *path_bar,
button_data->button = gtk_toggle_button_new ();
atk_obj = gtk_widget_get_accessible (button_data->button);
gtk_button_set_focus_on_click (GTK_BUTTON (button_data->button), FALSE);
+ gtk_widget_add_events (button_data->button, GDK_SCROLL_MASK);
switch (button_data->type)
{