dnd: Remove gdk_drag_status() and gdk_drag_finish()

Those functions are unused and have been replaced by their equivalents
gdk_drop_status() and gdk_drop_finish().
This commit is contained in:
Benjamin Otte 2018-06-14 04:57:10 +02:00
parent a1cee7fa65
commit f982c9c8f8
3 changed files with 0 additions and 55 deletions

View File

@ -779,10 +779,8 @@ GdkDragContext
GdkDragCancelReason
gdk_drag_drop_done
gdk_drag_begin
gdk_drag_finish
GdkDragAction
GDK_ACTION_ALL
gdk_drag_status
gdk_drag_context_get_display
gdk_drag_context_get_actions

View File

@ -484,26 +484,6 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
/**
* gdk_drag_status:
* @context: a #GdkDragContext
* @action: the selected action which will be taken when a drop happens,
* or 0 to indicate that a drop will not be accepted
* @time_: the timestamp for this operation
*
* Selects one of the actions offered by the drag source.
*
* This function is called by the drag destination in response to
* gdk_drag_motion() called by the drag source.
*/
void
gdk_drag_status (GdkDragContext *context,
GdkDragAction action,
guint32 time_)
{
gdk_drop_status (GDK_DROP (context), action);
}
/*
* gdk_drag_abort:
* @context: a #GdkDragContext
@ -540,29 +520,6 @@ gdk_drag_drop (GdkDragContext *context,
GDK_DRAG_CONTEXT_GET_CLASS (context)->drag_drop (context, time_);
}
/**
* gdk_drag_finish:
* @context: a #GdkDragContext
* @success: %TRUE if the data was successfully received
* @time_: the timestamp for this operation
*
* Ends the drag operation after a drop.
*
* This function is called by the drag destination.
*/
void
gdk_drag_finish (GdkDragContext *context,
gboolean success,
guint32 time_)
{
g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
if (success)
gdk_drop_finish (GDK_DROP (context), gdk_drag_context_get_selected_action (context));
else
gdk_drop_finish (GDK_DROP (context), 0);
}
static void
gdk_drag_context_write_done (GObject *content,
GAsyncResult *result,

View File

@ -75,16 +75,6 @@ GdkDragAction gdk_drag_context_get_selected_action (GdkDragContext *context)
GDK_AVAILABLE_IN_ALL
GdkDragAction gdk_drag_action_is_unique (GdkDragAction action);
/* Destination side */
GDK_AVAILABLE_IN_ALL
void gdk_drag_status (GdkDragContext *context,
GdkDragAction action,
guint32 time_);
GDK_AVAILABLE_IN_ALL
void gdk_drag_finish (GdkDragContext *context,
gboolean success,
guint32 time_);
/* Source side */
GDK_AVAILABLE_IN_ALL