summaryrefslogtreecommitdiff
path: root/gdk/gdkdnd.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-05-14 02:49:33 +0200
committerBenjamin Otte <otte@redhat.com>2018-06-18 23:49:19 +0200
commitb2dc303e5e7dde1648b26513afbf07989a1538bc (patch)
tree4781e4d85d069a576c43ff36306f958dbcddc8db /gdk/gdkdnd.h
parent2e27967814276fb94d2c4d1982bc504a26282188 (diff)
downloadgtk+-b2dc303e5e7dde1648b26513afbf07989a1538bc.tar.gz
dnd: Add gdk_drop_get_actions()
This uses the new method without GDK_ACTION_ASK: Either it is a single action (queryable via gdk_drag_action_is_unique()) or it is not and then the drop target has to make a decision (potentially by asking someone).
Diffstat (limited to 'gdk/gdkdnd.h')
-rw-r--r--gdk/gdkdnd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h
index f153af44a1..d7a20d2866 100644
--- a/gdk/gdkdnd.h
+++ b/gdk/gdkdnd.h
@@ -60,6 +60,15 @@ typedef enum
} GdkDragAction;
/**
+ * GDK_ACTION_ALL:
+ *
+ * Defines all possible DND actions. This can be used in gdk_drop_status()
+ * messages when any drop can be accepted or a more specific drop method
+ * is not yet known.
+ */
+#define GDK_ACTION_ALL (GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK)
+
+/**
* GdkDragCancelReason:
* @GDK_DRAG_CANCEL_NO_TARGET: There is no suitable drop target.
* @GDK_DRAG_CANCEL_USER_CANCELLED: Drag cancelled by the user