diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-01 23:33:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-01 23:47:56 -0500 |
commit | fff8297a50e23481d2df72d123f2a84e34a866be (patch) | |
tree | 2673b208cf45fc91e2d61c0c81e72b4cbf6f8df2 /gdk/wayland/gdkdnd-wayland.c | |
parent | d46b67dc79485accfc1e06403ec38458a7d2836d (diff) | |
download | gtk+-fff8297a50e23481d2df72d123f2a84e34a866be.tar.gz |
Add gdk_drag_context_get_drag_window
This makes gdk_wayland_drag_context_get_dnd_window
backend-independent API and adds an implementation
for X11.
Diffstat (limited to 'gdk/wayland/gdkdnd-wayland.c')
-rw-r--r-- | gdk/wayland/gdkdnd-wayland.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c index 70956868aa..7a07078bd5 100644 --- a/gdk/wayland/gdkdnd-wayland.c +++ b/gdk/wayland/gdkdnd-wayland.c @@ -293,6 +293,12 @@ gdk_wayland_drag_context_init (GdkWaylandDragContext *context_wayland) context->actions = GDK_ACTION_COPY | GDK_ACTION_MOVE; } +static GdkWindow * +gdk_wayland_drag_context_get_drag_window (GdkDragContext *context) +{ + return GDK_WAYLAND_DRAG_CONTEXT (context)->dnd_window; +} + static void gdk_wayland_drag_context_class_init (GdkWaylandDragContextClass *klass) { @@ -310,6 +316,7 @@ gdk_wayland_drag_context_class_init (GdkWaylandDragContextClass *klass) context_class->drop_finish = gdk_wayland_drag_context_drop_finish; context_class->drop_status = gdk_wayland_drag_context_drop_status; context_class->get_selection = gdk_wayland_drag_context_get_selection; + context_class->get_drag_window = gdk_wayland_drag_context_get_drag_window; } GdkDragProtocol |