[gtk/dnd-gestures-2: 202/242] testlist3: Use gtk_widget_add_controller for drag source



commit ab0b53573882fb147af70e75d706d42c1abe96c7
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]