dnd: Remove gdk_drag_status() and gdk_drag_finish()
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Jun 2018 02:57:10 +0000 (04:57 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Jun 2018 21:49:52 +0000 (23:49 +0200)
Those functions are unused and have been replaced by their equivalents
gdk_drop_status() and gdk_drop_finish().

docs/reference/gdk/gdk4-sections.txt
gdk/gdkdnd.c
gdk/gdkdnd.h

index 72f4afb27bf2a86184570d0a99071a8cb3690939..4e80fc717a188eb017e40030e969a8060711dd33 100644 (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
index 09d28ab129bb0a888ded334865c8526dd33cfe20..8db911b7ba77eb77d9928fa32b9ae8cbea7434bf 100644 (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,
index 8db67d8f1362c58a6ed42f4a271a9ba722ea4198..47de1cb3f23b33a2926b753d569e9c82da21438d 100644 (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