From 13ae11ee01ce753644b64a4813dd5551ad3aa963 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 14 May 2018 15:09:42 +0200 Subject: [PATCH] dnd: Rename gdk_drop_finish() => gdk_drag_finish() This is a simple rename, so that we can reintroduce gdk_drop_finish() with the GdkDrop object. --- docs/dnd_internals.txt | 2 +- docs/reference/gdk/gdk4-sections.txt | 2 +- gdk/gdkdnd.c | 4 ++-- gdk/gdkdnd.h | 2 +- gdk/gdkdrop.c | 4 ++-- gdk/win32/gdkdrag-win32.c | 2 +- gdk/win32/gdkdrop-win32.c | 2 +- gtk/gtkdnd.c | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/dnd_internals.txt b/docs/dnd_internals.txt index 02fba41f93..eb4cde2a84 100644 --- a/docs/dnd_internals.txt +++ b/docs/dnd_internals.txt @@ -71,7 +71,7 @@ straightforward manner. void gdk_drag_status (GdkDragContext *context, GdkDragAction action, guint32 time); -void gdk_drop_finish (GdkDragContext *context, +void gdk_drag_finish (GdkDragContext *context, gboolean success, guint32 time); GdkAtom gdk_drag_get_selection (GdkDragContext *context); diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index d03ddf3cd3..ffe1fc0b5b 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -783,7 +783,7 @@ GdkDragContext GdkDragCancelReason gdk_drag_drop_done gdk_drag_begin -gdk_drop_finish +gdk_drag_finish GdkDragAction GDK_ACTION_ALL gdk_drag_status diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index ddc155f553..126d8ea356 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -573,7 +573,7 @@ gdk_drag_drop (GdkDragContext *context, } /** - * gdk_drop_finish: + * gdk_drag_finish: * @context: a #GdkDragContext * @success: %TRUE if the data was successfully received * @time_: the timestamp for this operation @@ -583,7 +583,7 @@ gdk_drag_drop (GdkDragContext *context, * This function is called by the drag destination. */ void -gdk_drop_finish (GdkDragContext *context, +gdk_drag_finish (GdkDragContext *context, gboolean success, guint32 time_) { diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h index d7a20d2866..365e9cf4cb 100644 --- a/gdk/gdkdnd.h +++ b/gdk/gdkdnd.h @@ -115,7 +115,7 @@ void gdk_drag_status (GdkDragContext *context, GdkDragAction action, guint32 time_); GDK_AVAILABLE_IN_ALL -void gdk_drop_finish (GdkDragContext *context, +void gdk_drag_finish (GdkDragContext *context, gboolean success, guint32 time_); diff --git a/gdk/gdkdrop.c b/gdk/gdkdrop.c index 925357e2a7..7fa7d029c7 100644 --- a/gdk/gdkdrop.c +++ b/gdk/gdkdrop.c @@ -314,12 +314,12 @@ gdk_drop_get_formats (GdkDrop *self) * * Returns the possible actions for this #GdkDrop. If this value * contains multiple actions - ie gdk_drag_action_is_unique() - * returns %FALSE for the result - gdk_drop_finish() must choose + * returns %FALSE for the result - gdk_drag_finish() must choose * the action to use when accepting the drop. * * This value may change over the lifetime of the #GdkDrop both * as a response to source side actions as well as to calls to - * gdk_drop_status() or gdk_drop_finish(). The source side will + * gdk_drop_status() or gdk_drag_finish(). The source side will * not change this value anymore once a drop has started. * * Returns: The possible #GdkDragActions diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c index b1f5c29649..9d662eba38 100644 --- a/gdk/win32/gdkdrag-win32.c +++ b/gdk/win32/gdkdrag-win32.c @@ -2370,7 +2370,7 @@ gdk_win32_drag_context_drop_done (GdkDragContext *context, success ? "dropped successfully" : "dropped unsuccessfully")); /* FIXME: This is temporary, until the code is fixed to ensure that - * gdk_drop_finish () is called by GTK. + * gdk_drag_finish () is called by GTK. */ if (use_ole2_dnd) { diff --git a/gdk/win32/gdkdrop-win32.c b/gdk/win32/gdkdrop-win32.c index bbf8a9b4af..d0b088b000 100644 --- a/gdk/win32/gdkdrop-win32.c +++ b/gdk/win32/gdkdrop-win32.c @@ -904,7 +904,7 @@ gdk_win32_drop_context_drop_finish (GdkDragContext *context, g_return_if_fail (context != NULL); - GDK_NOTE (DND, g_print ("gdk_drop_finish\n")); + GDK_NOTE (DND, g_print ("gdk_drag_finish\n")); if (!use_ole2_dnd) { diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index f84659306b..748c191d29 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -352,7 +352,7 @@ gtk_drag_finish (GdkDragContext *context, { g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); - gdk_drop_finish (context, success, time); + gdk_drag_finish (context, success, time); } /** -- 2.30.2