[gtk+/wip/wayland-dnd-actions: 22/23] wayland: Offer internal getter for the device drop context
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/wayland-dnd-actions: 22/23] wayland: Offer internal getter for the device drop context
- Date: Wed, 8 Apr 2015 13:43:30 +0000 (UTC)
commit 8dff7ffb6338e782e0f660af86ef4f3876918c86
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 7 16:59:44 2015 +0200
wayland: Offer internal getter for the device drop context
This will be needed in other places when implementing DnD actions.
gdk/wayland/gdkdevice-wayland.c | 11 +++++++++++
gdk/wayland/gdkprivate-wayland.h | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 14ba5ea..a79cc6d 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2102,3 +2102,14 @@ gdk_wayland_device_set_selection (GdkDevice *gdk_device,
wl_data_device_set_selection (device->data_device, source,
_gdk_wayland_display_get_serial (display_wayland));
}
+
+GdkDragContext *
+gdk_wayland_device_get_drop_context (GdkDevice *gdk_device)
+{
+ GdkWaylandDeviceData *device;
+
+ g_return_if_fail (GDK_IS_WAYLAND_DEVICE (gdk_device));
+ device = GDK_WAYLAND_DEVICE (gdk_device)->device;
+
+ return device->drop_context;
+}
diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h
index 01038ba..a42eae6 100644
--- a/gdk/wayland/gdkprivate-wayland.h
+++ b/gdk/wayland/gdkprivate-wayland.h
@@ -186,6 +186,7 @@ uint32_t _gdk_wayland_device_get_last_implicit_grab_serial (GdkWaylandDevice *d
struct wl_data_device * gdk_wayland_device_get_data_device (GdkDevice *gdk_device);
void gdk_wayland_device_set_selection (GdkDevice *gdk_device,
struct wl_data_source *source);
+GdkDragContext * gdk_wayland_device_get_drop_context (GdkDevice *gdk_device);
void gdk_wayland_device_unset_touch_grab (GdkDevice *device,
GdkEventSequence *sequence);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]