summaryrefslogtreecommitdiff
path: root/gdk/gdkdnd.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-31 10:16:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-31 10:18:10 -0400
commitf8cad1982989c3318c0549bc7ef293f1f0bff63e (patch)
tree4d928cab36b7cfabb292ee6d33d76fce35c5bb31 /gdk/gdkdnd.c
parentc97e2af23bb37f0ca76af75a52360035cf2355e3 (diff)
downloadgtk+-f8cad1982989c3318c0549bc7ef293f1f0bff63e.tar.gz
dnd: Drop GdkScreen from apis
Drop the screen argument from gdk_dnd_find_window_for_screen and rename the function to gdk_dnd_find_window. The screen argument does not add anything here since the drag context is already tied to the display. Update all backends, and update all callers.
Diffstat (limited to 'gdk/gdkdnd.c')
-rw-r--r--gdk/gdkdnd.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index f6cddd5a65..0d22e26ee1 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -362,11 +362,10 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
}
/**
- * gdk_drag_find_window_for_screen:
+ * 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
- * @screen: the screen where the destination window is sought
* @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
@@ -381,18 +380,17 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
* Since: 2.2
*/
void
-gdk_drag_find_window_for_screen (GdkDragContext *context,
- GdkWindow *drag_window,
- GdkScreen *screen,
- gint x_root,
- gint y_root,
- GdkWindow **dest_window,
- GdkDragProtocol *protocol)
+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, screen, x_root, y_root, protocol);
+ ->find_window (context, drag_window, x_root, y_root, protocol);
}
/**