diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-17 20:29:11 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-01-31 13:21:26 +0100 |
commit | 3e0fab6b9325160a8851173cc78b2bbd42fc5f65 (patch) | |
tree | e8f33d2565b53341f430d7c752cb0b70e0830e3d /gdk/gdkdnd.c | |
parent | e8986d18c2deb5dd6b1a674d30502c0aa4bdd95e (diff) | |
download | gtk+-3e0fab6b9325160a8851173cc78b2bbd42fc5f65.tar.gz |
dnd: Remove 2 vfuncs that aren't needed
They're only used inside the X11 backend, and the backend can just call
its own function.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r-- | gdk/gdkdnd.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index b88d83b9ec..725d70d731 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -506,38 +506,6 @@ gdk_drag_context_class_init (GdkDragContextClass *klass) g_object_class_install_properties (object_class, N_PROPERTIES, properties); } -/* - * gdk_drag_find_window: - * @context: a #GdkDragContext - * @drag_window: a window which may be at the pointer position, but - * should be ignored, since it is put up by the drag source as an icon - * @x_root: the x position of the pointer in root coordinates - * @y_root: the y position of the pointer in root coordinates - * @dest_window: (out): location to store the destination window in - * @protocol: (out): location to store the DND protocol in - * - * Finds the destination window and DND protocol to use at the - * given pointer position. - * - * This function is called by the drag source to obtain the - * @dest_window and @protocol parameters for gdk_drag_motion(). - * - * Since: 2.2 - */ -void -gdk_drag_find_window (GdkDragContext *context, - GdkWindow *drag_window, - gint x_root, - gint y_root, - GdkWindow **dest_window, - GdkDragProtocol *protocol) -{ - g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); - - *dest_window = GDK_DRAG_CONTEXT_GET_CLASS (context) - ->find_window (context, drag_window, x_root, y_root, protocol); -} - /** * gdk_drag_status: * @context: a #GdkDragContext @@ -561,48 +529,6 @@ gdk_drag_status (GdkDragContext *context, } /* - * gdk_drag_motion: - * @context: a #GdkDragContext - * @dest_window: the new destination window, obtained by - * gdk_drag_find_window() - * @protocol: the DND protocol in use, obtained by gdk_drag_find_window() - * @x_root: the x position of the pointer in root coordinates - * @y_root: the y position of the pointer in root coordinates - * @suggested_action: the suggested action - * @possible_actions: the possible actions - * @time_: the timestamp for this operation - * - * Updates the drag context when the pointer moves or the - * set of actions changes. - * - * This function is called by the drag source. - * - * Returns: - */ -gboolean -gdk_drag_motion (GdkDragContext *context, - GdkWindow *dest_window, - GdkDragProtocol protocol, - gint x_root, - gint y_root, - GdkDragAction suggested_action, - GdkDragAction possible_actions, - guint32 time_) -{ - g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE); - - return GDK_DRAG_CONTEXT_GET_CLASS (context) - ->drag_motion (context, - dest_window, - protocol, - x_root, - y_root, - suggested_action, - possible_actions, - time_); -} - -/* * gdk_drag_abort: * @context: a #GdkDragContext * @time_: the timestamp for this operation |