summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-05-14 04:16:25 +0200
committerBenjamin Otte <otte@redhat.com>2018-06-18 23:49:19 +0200
commita05af1f0f3fcd18ed7feac92f2ce5397d4cf8751 (patch)
treed6f74ab94cd6733e3f22b987b4fdae779a0a7fcd /gdk/wayland
parentb2dc303e5e7dde1648b26513afbf07989a1538bc (diff)
downloadgtk+-a05af1f0f3fcd18ed7feac92f2ce5397d4cf8751.tar.gz
dnd: Move the gdk_drag_status() function
It's now gdk_drop_status(). Also clarify the intended semantics.
Diffstat (limited to 'gdk/wayland')
-rw-r--r--gdk/wayland/gdkdnd-wayland.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c
index 815080746a..d03af430e8 100644
--- a/gdk/wayland/gdkdnd-wayland.c
+++ b/gdk/wayland/gdkdnd-wayland.c
@@ -215,13 +215,12 @@ gdk_wayland_drag_context_commit_status (GdkDragContext *context)
}
static void
-gdk_wayland_drag_context_drag_status (GdkDragContext *context,
- GdkDragAction action,
- guint32 time_)
+gdk_wayland_drag_context_status (GdkDrop *drop,
+ GdkDragAction action)
{
GdkWaylandDragContext *wayland_context;
- wayland_context = GDK_WAYLAND_DRAG_CONTEXT (context);
+ wayland_context = GDK_WAYLAND_DRAG_CONTEXT (drop);
wayland_context->selected_action = action;
}
@@ -403,10 +402,10 @@ gdk_wayland_drag_context_class_init (GdkWaylandDragContextClass *klass)
object_class->finalize = gdk_wayland_drag_context_finalize;
+ drop_class->status = gdk_wayland_drag_context_status;
drop_class->read_async = gdk_wayland_drag_context_read_async;
drop_class->read_finish = gdk_wayland_drag_context_read_finish;
- context_class->drag_status = gdk_wayland_drag_context_drag_status;
context_class->drag_abort = gdk_wayland_drag_context_drag_abort;
context_class->drag_drop = gdk_wayland_drag_context_drag_drop;
context_class->drop_finish = gdk_wayland_drag_context_drop_finish;