[gtk/dnd-gestures-2: 124/150] testdnd2: Update to the api change in the previous commit



commit aaf578a65e08f23b849e2d31d13feea40a05e999
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 6 20:30:14 2020 -0500

    testdnd2: Update to the api change in the previous commit

 tests/testdnd2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testdnd2.c b/tests/testdnd2.c
index a9e4b8629a..8a04745a66 100644
--- a/tests/testdnd2.c
+++ b/tests/testdnd2.c
@@ -273,7 +273,7 @@ drag_end (GtkDragSource *source)
 }
 
 static gboolean
-drag_failed (GtkDragSource       *source,
+drag_cancel (GtkDragSource       *source,
              GdkDrag             *drag,
              GdkDragCancelReason  reason)
 {
@@ -306,7 +306,7 @@ make_image (const gchar *icon_name, int hotspot)
 
   g_signal_connect (source, "drag-begin", G_CALLBACK (drag_begin), NULL);
   g_signal_connect (source, "drag-end", G_CALLBACK (drag_end), NULL);
-  g_signal_connect (source, "drag-failed", G_CALLBACK (drag_failed), NULL);
+  g_signal_connect (source, "drag-cancel", G_CALLBACK (drag_cancel), NULL);
   gtk_widget_add_controller (image, GTK_EVENT_CONTROLLER (source));
 
   dest = gtk_drop_target_new (formats, GDK_ACTION_COPY|GDK_ACTION_MOVE|GDK_ACTION_ASK);


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