mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Remove deprecated gdk_window_get_pointer
This commit is contained in:
parent
1396d6c92a
commit
5e4a05e5b7
@ -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
|
||||
|
@ -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 isn’t 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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user