[gtk/dnd-gestures-2: 116/175] testdnd: Use gtk_widget_add_controller for drag source



commit b364e0e6c93c1ea689dc12d1236164c464352b71
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 01:12:48 2020 -0500

    testdnd: Use gtk_widget_add_controller for drag source

 tests/testdnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testdnd.c b/tests/testdnd.c
index ceefa34c5c..e2d62953b7 100644
--- a/tests/testdnd.c
+++ b/tests/testdnd.c
@@ -642,7 +642,7 @@ main (int argc, char **argv)
   gtk_drag_source_set_content (source, content);
   g_object_unref (content);
   gtk_drag_source_set_actions (source, GDK_ACTION_COPY|GDK_ACTION_MOVE);
-  gtk_drag_source_attach (source, button, GDK_BUTTON1_MASK | GDK_BUTTON3_MASK);
+  gtk_widget_add_controller (button, GTK_EVENT_CONTROLLER (source));
   gtk_drag_source_set_icon (source, GDK_PAINTABLE (texture), 0, 0);
 
   g_object_unref (texture);


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