[gtk+/wip/wayland-dnd-actions: 672/674] 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: 672/674] wayland: Offer internal getter for the device drop context
- Date: Mon, 29 Jun 2015 16:44:26 +0000 (UTC)
commit 0aeebf691f4e416fc40d22fa25349df53c623339
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 d16c92f..7041f01 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -2247,3 +2247,14 @@ gdk_wayland_device_unset_grab (GdkDevice *gdk_device)
_gdk_wayland_display_deliver_event (gdk_device_get_display (gdk_device), event);
}
+
+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 cd36c2e..b78f854 100644
--- a/gdk/wayland/gdkprivate-wayland.h
+++ b/gdk/wayland/gdkprivate-wayland.h
@@ -184,6 +184,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_grab (GdkDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]