summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-07 01:08:51 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-08 18:48:21 -0500
commit134fca47e3ba8e6eb80a82deba919dcb4c66cdd1 (patch)
tree1fead3e196d79337e3af0e30fb1d214895343145 /gtk/gtkpathbar.c
parent4630dd8d68560bc243873918b0e1c0c111d897e5 (diff)
downloadgtk+-134fca47e3ba8e6eb80a82deba919dcb4c66cdd1.tar.gz
pathbar: Use gtk_widget_add_controller for drag source
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 248ff308ae..37a7b05487 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1370,7 +1370,7 @@ make_directory_button (GtkPathBar *path_bar,
content = gdk_content_provider_new_for_value (&value);
gtk_drag_source_set_content (source, content);
g_object_unref (content);
- gtk_drag_source_attach (source, button_data->button, GDK_BUTTON1_MASK);
+ gtk_widget_add_controller (button_data->button, GTK_EVENT_CONTROLLER (source));
g_value_unset (&value);
return button_data;