[gtk/dnd-gestures-2: 111/173] testlist3: Use gtk_widget_add_controller for drag source



commit a5ca5eb8652d09b6c6f7ea7088fdfbadbb6e64dc
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 01:13:35 2020 -0500

    testlist3: Use gtk_widget_add_controller for drag source

 tests/testlist3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testlist3.c b/tests/testlist3.c
index 2180544d04..45076a73ed 100644
--- a/tests/testlist3.c
+++ b/tests/testlist3.c
@@ -88,7 +88,7 @@ create_row (const gchar *text)
   gtk_drag_source_set_content (source, content);
   gtk_drag_source_set_actions (source, GDK_ACTION_MOVE);
   g_signal_connect (source, "drag-begin", G_CALLBACK (drag_begin), image);
-  gtk_drag_source_attach (source, image, GDK_BUTTON1_MASK);
+  gtk_widget_add_controller (image, GTK_EVENT_CONTROLLER (source));
 
   targets = gdk_content_formats_new (entries, 1);
   dest = gtk_drop_target_new (targets, GDK_ACTION_MOVE);


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