[gtk/dnd-gestures-2: 110/150] pathbar: Use gtk_widget_add_controller for drag source



commit dc33b50c3d37736feede7573514ebd6161bf82a2
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 01:08:51 2020 -0500

    pathbar: Use gtk_widget_add_controller for drag source

 gtk/gtkpathbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]