summaryrefslogtreecommitdiff
path: root/tests/testdnd2.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-06 13:28:25 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-08 18:48:21 -0500
commit38974d7d2bc56496b45e1b7406d68a37009530d7 (patch)
treef848fd3a987cdd84d0eec0953083db21d226b5a9 /tests/testdnd2.c
parentf6f331efe3f4cd7b2a0078fb6cf67d5eda6b288f (diff)
downloadgtk+-38974d7d2bc56496b45e1b7406d68a37009530d7.tar.gz
dragsource: Tweak api, update all callers
Add GdkDrag back to signals, drop ::drag-data-delete, and replace it with a boolean in ::drag-end.
Diffstat (limited to 'tests/testdnd2.c')
-rw-r--r--tests/testdnd2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testdnd2.c b/tests/testdnd2.c
index 98c44c8c76..b766d0460b 100644
--- a/tests/testdnd2.c
+++ b/tests/testdnd2.c
@@ -273,7 +273,9 @@ drag_end (GtkDragSource *source)
}
static gboolean
-drag_failed (GtkDragSource *source, GdkDragCancelReason reason)
+drag_failed (GtkDragSource *source,
+ GdkDrag *drag,
+ GdkDragCancelReason reason)
{
g_print ("drag failed: %d\n", reason);
return FALSE;
@@ -316,7 +318,8 @@ make_image (const gchar *icon_name, int hotspot)
static void
spinner_drag_begin (GtkDragSource *source,
- GtkWidget *widget)
+ GdkDrag *drag,
+ GtkWidget *widget)
{
GdkPaintable *paintable;