Remove deprecated gdk_window_get_pointer

This commit is contained in:
Matthias Clasen 2016-10-25 19:45:48 -04:00
parent 1396d6c92a
commit 5e4a05e5b7
3 changed files with 0 additions and 44 deletions

View File

@ -438,7 +438,6 @@ gdk_window_get_root_origin
gdk_window_get_frame_extents
gdk_window_get_origin
gdk_window_get_root_coords
gdk_window_get_pointer
gdk_window_get_device_position
gdk_window_get_device_position_double
GdkModifierType

View File

@ -4346,42 +4346,6 @@ gdk_window_constrain_size (GdkGeometry *geometry,
*new_height = height;
}
/**
* gdk_window_get_pointer:
* @window: a #GdkWindow
* @x: (out) (allow-none): return location for X coordinate of pointer or %NULL to not
* return the X coordinate
* @y: (out) (allow-none): return location for Y coordinate of pointer or %NULL to not
* return the Y coordinate
* @mask: (out) (allow-none): return location for modifier mask or %NULL to not return the
* modifier mask
*
* Obtains the current pointer position and modifier state.
* The position is given in coordinates relative to the upper left
* corner of @window.
*
* Returns: (nullable) (transfer none): the window containing the
* pointer, or %NULL if the window containing the pointer isnt known to GDK
*
* Deprecated: 3.0: Use gdk_window_get_device_position() instead.
**/
GdkWindow*
gdk_window_get_pointer (GdkWindow *window,
gint *x,
gint *y,
GdkModifierType *mask)
{
GdkDisplay *display;
GdkDevice *pointer;
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
display = gdk_window_get_display (window);
pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (display));
return gdk_window_get_device_position (window, pointer, x, y, mask);
}
/**
* gdk_window_get_device_position_double:
* @window: a #GdkWindow.

View File

@ -783,13 +783,6 @@ void gdk_window_get_frame_extents (GdkWindow *window,
GDK_AVAILABLE_IN_3_10
gint gdk_window_get_scale_factor (GdkWindow *window);
#ifndef GDK_MULTIDEVICE_SAFE
GDK_DEPRECATED_IN_3_0_FOR(gdk_window_get_device_position)
GdkWindow * gdk_window_get_pointer (GdkWindow *window,
gint *x,
gint *y,
GdkModifierType *mask);
#endif /* GDK_MULTIDEVICE_SAFE */
GDK_AVAILABLE_IN_ALL
GdkWindow * gdk_window_get_device_position (GdkWindow *window,
GdkDevice *device,