They're unused and nobody knows what they're supposed to men anyway.
const gchar *name;
GdkCursor *cursor;
} drag_cursors[] = {
- { GDK_ACTION_DEFAULT, NULL, NULL },
{ GDK_ACTION_ASK, "dnd-ask", NULL },
{ GDK_ACTION_COPY, "dnd-copy", NULL },
{ GDK_ACTION_MOVE, "dnd-move", NULL },
GdkDragAction
gdk_drag_context_get_actions (GdkDragContext *context)
{
- g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), GDK_ACTION_DEFAULT);
+ g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), 0);
return context->actions;
}
/**
* GdkDragAction:
- * @GDK_ACTION_DEFAULT: Means nothing, and should not be used.
* @GDK_ACTION_COPY: Copy the data.
* @GDK_ACTION_MOVE: Move the data, i.e. first copy it, then delete
* it from the source using the DELETE target of the X selection protocol.
* @GDK_ACTION_LINK: Add a link to the data. Note that this is only
* useful if source and destination agree on what it means.
- * @GDK_ACTION_PRIVATE: Special action which tells the source that the
- * destination will do something that the source doesn’t understand.
* @GDK_ACTION_ASK: Ask the user what to do with the data.
*
* Used in #GdkDragContext to indicate what the destination
*/
typedef enum
{
- GDK_ACTION_DEFAULT = 1 << 0,
- GDK_ACTION_COPY = 1 << 1,
- GDK_ACTION_MOVE = 1 << 2,
- GDK_ACTION_LINK = 1 << 3,
- GDK_ACTION_PRIVATE = 1 << 4,
- GDK_ACTION_ASK = 1 << 5
+ GDK_ACTION_COPY = 1 << 0,
+ GDK_ACTION_MOVE = 1 << 1,
+ GDK_ACTION_LINK = 1 << 2,
+ GDK_ACTION_ASK = 1 << 3
} GdkDragAction;
/**
/* GDK and Quartz drag operations do not map 1:1.
* This mapping represents about the best that we
* can come up.
- *
- * Note that NSDragOperationPrivate and GDK_ACTION_PRIVATE
- * have almost opposite meanings: the GDK one means that the
- * destination is solely responsible for the action; the Quartz
- * one means that the source and destination will agree
- * privately on the action. NSOperationGeneric is close in meaning
- * to GDK_ACTION_PRIVATE but there is a problem: it will be
- * sent for any ordinary drag, and likely not understood
- * by any intra-widget drag (since the source & dest are the
- * same).
*/
if (operation & NSDragOperationGeneric)
{
uint32_t dnd_actions = 0;
- if (action & (GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_PRIVATE))
+ if (action & (GDK_ACTION_COPY | GDK_ACTION_LINK))
dnd_actions |= WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY;
if (action & GDK_ACTION_MOVE)
dnd_actions |= WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE;
if (effect & DROPEFFECT_COPY)
action |= GDK_ACTION_COPY;
- if (action == 0)
- action = GDK_ACTION_DEFAULT;
-
return action;
}
if (src_context_win32->drag_status == GDK_DRAG_STATUS_MOTION_WAIT)
src_context_win32->drag_status = GDK_DRAG_STATUS_DRAG;
- if (action == GDK_ACTION_DEFAULT)
- action = 0;
-
src_context->action = action;
GDK_NOTE (DND, g_print ("gdk_dnd_handle_drag_status: 0x%p\n",
source_context ? source_context->source_surface : NULL,
ctx->dest_surface,
query_targets (pDataObj, NULL),
- GDK_ACTION_DEFAULT | GDK_ACTION_COPY | GDK_ACTION_MOVE,
+ GDK_ACTION_COPY | GDK_ACTION_MOVE,
GDK_DRAG_PROTO_OLE2);
context_win32 = GDK_WIN32_DROP_CONTEXT (context);
gdk_content_formats_unref (query_targets (pDataObj, context_win32->droptarget_w32format_contentformat_map));
if (actions & GDK_ACTION_ ## x) \
(bufp += sprintf (bufp, "%s" #x, s), s = "|")
- BIT (DEFAULT);
BIT (COPY);
BIT (MOVE);
BIT (LINK);
- BIT (PRIVATE);
BIT (ASK);
#undef BIT