From: Benjamin Otte Date: Thu, 14 Jun 2018 02:57:10 +0000 (+0200) Subject: dnd: Remove gdk_drag_status() and gdk_drag_finish() X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f982c9c8f8280ee00446055edf0438bb73da4e4b;p=gtk4.git 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(). --- diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 72f4afb27b..4e80fc717a 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -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 diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index 09d28ab129..8db911b7ba 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -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, diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h index 8db67d8f13..47de1cb3f2 100644 --- a/gdk/gdkdnd.h +++ b/gdk/gdkdnd.h @@ -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