mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Rename gdk_device_get_surface_at_position_double
We can drop the double suffix now.
This commit is contained in:
parent
5935f26a1d
commit
c0aaa43122
@ -71,7 +71,7 @@ find_toplevel_at_pointer (GdkDisplay *display)
|
|||||||
GdkSurface *pointer_window;
|
GdkSurface *pointer_window;
|
||||||
GtkWidget *widget = NULL;
|
GtkWidget *widget = NULL;
|
||||||
|
|
||||||
pointer_window = gdk_device_get_surface_at_position_double (gtk_get_current_event_device (), NULL, NULL);
|
pointer_window = gdk_device_get_surface_at_position (gtk_get_current_event_device (), NULL, NULL);
|
||||||
|
|
||||||
if (pointer_window)
|
if (pointer_window)
|
||||||
widget = GTK_WIDGET (gtk_root_get_for_surface (pointer_window));
|
widget = GTK_WIDGET (gtk_root_get_for_surface (pointer_window));
|
||||||
|
@ -510,7 +510,7 @@ gdk_device_ungrab
|
|||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gdk_device_get_state
|
gdk_device_get_state
|
||||||
gdk_device_get_position
|
gdk_device_get_position
|
||||||
gdk_device_get_surface_at_position_double
|
gdk_device_get_surface_at_position
|
||||||
gdk_device_get_history
|
gdk_device_get_history
|
||||||
gdk_device_free_history
|
gdk_device_free_history
|
||||||
GdkTimeCoord
|
GdkTimeCoord
|
||||||
|
@ -568,7 +568,7 @@ gdk_device_get_position (GdkDevice *device,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gdk_device_get_surface_at_position_double:
|
* gdk_device_get_surface_at_position:
|
||||||
* @device: pointer #GdkDevice to query info to.
|
* @device: pointer #GdkDevice to query info to.
|
||||||
* @win_x: (out) (allow-none): return location for the X coordinate of the device location,
|
* @win_x: (out) (allow-none): return location for the X coordinate of the device location,
|
||||||
* relative to the surface origin, or %NULL.
|
* relative to the surface origin, or %NULL.
|
||||||
@ -587,9 +587,9 @@ gdk_device_get_position (GdkDevice *device,
|
|||||||
* device position, or %NULL.
|
* device position, or %NULL.
|
||||||
**/
|
**/
|
||||||
GdkSurface *
|
GdkSurface *
|
||||||
gdk_device_get_surface_at_position_double (GdkDevice *device,
|
gdk_device_get_surface_at_position (GdkDevice *device,
|
||||||
gdouble *win_x,
|
double *win_x,
|
||||||
gdouble *win_y)
|
double *win_y)
|
||||||
{
|
{
|
||||||
gdouble tmp_x, tmp_y;
|
gdouble tmp_x, tmp_y;
|
||||||
GdkSurface *surface;
|
GdkSurface *surface;
|
||||||
|
@ -171,11 +171,9 @@ void gdk_device_get_position (GdkDevice *device,
|
|||||||
double *x,
|
double *x,
|
||||||
double *y);
|
double *y);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GdkSurface *
|
GdkSurface * gdk_device_get_surface_at_position (GdkDevice *device,
|
||||||
gdk_device_get_surface_at_position_double
|
double *win_x,
|
||||||
(GdkDevice *device,
|
double *win_y);
|
||||||
gdouble *win_x,
|
|
||||||
gdouble *win_y);
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
gboolean gdk_device_get_history (GdkDevice *device,
|
gboolean gdk_device_get_history (GdkDevice *device,
|
||||||
GdkSurface *surface,
|
GdkSurface *surface,
|
||||||
|
@ -2447,14 +2447,14 @@ gdk_wayland_surface_map (GdkSurface *surface)
|
|||||||
GDK_SURFACE_IMPL_WAYLAND (attached_grab_surface->impl);
|
GDK_SURFACE_IMPL_WAYLAND (attached_grab_surface->impl);
|
||||||
grab_device = gdk_seat_get_pointer (attached_impl->grab_input_seat);
|
grab_device = gdk_seat_get_pointer (attached_impl->grab_input_seat);
|
||||||
transient_for =
|
transient_for =
|
||||||
gdk_device_get_surface_at_position_double (grab_device, NULL, NULL);
|
gdk_device_get_surface_at_position (grab_device, NULL, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
grab_device = gdk_seat_get_pointer (impl->grab_input_seat);
|
grab_device = gdk_seat_get_pointer (impl->grab_input_seat);
|
||||||
transient_for =
|
transient_for =
|
||||||
gdk_device_get_surface_at_position_double (grab_device, NULL, NULL);
|
gdk_device_get_surface_at_position (grab_device, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transient_for)
|
if (transient_for)
|
||||||
|
@ -902,7 +902,7 @@ gdk_input_other_event (GdkDisplay *display,
|
|||||||
}
|
}
|
||||||
|
|
||||||
device_manager = GDK_DEVICE_MANAGER_WIN32 (_gdk_device_manager);
|
device_manager = GDK_DEVICE_MANAGER_WIN32 (_gdk_device_manager);
|
||||||
window = gdk_device_get_surface_at_position_double (device_manager->core_pointer, &x, &y);
|
window = gdk_device_get_surface_at_position (device_manager->core_pointer, &x, &y);
|
||||||
|
|
||||||
if (window)
|
if (window)
|
||||||
g_object_ref (window);
|
g_object_ref (window);
|
||||||
|
@ -394,7 +394,7 @@ gtk_tooltip_trigger_tooltip_query (GtkWidget *widget)
|
|||||||
|
|
||||||
/* Trigger logic as if the mouse moved */
|
/* Trigger logic as if the mouse moved */
|
||||||
device = gdk_seat_get_pointer (gdk_display_get_default_seat (display));
|
device = gdk_seat_get_pointer (gdk_display_get_default_seat (display));
|
||||||
surface = gdk_device_get_surface_at_position_double (device, &x, &y);
|
surface = gdk_device_get_surface_at_position (device, &x, &y);
|
||||||
if (!surface)
|
if (!surface)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ find_widget_at_pointer (GdkDevice *device)
|
|||||||
GtkWidget *widget = NULL;
|
GtkWidget *widget = NULL;
|
||||||
GdkSurface *pointer_surface;
|
GdkSurface *pointer_surface;
|
||||||
|
|
||||||
pointer_surface = gdk_device_get_surface_at_position_double (device, NULL, NULL);
|
pointer_surface = gdk_device_get_surface_at_position (device, NULL, NULL);
|
||||||
|
|
||||||
if (pointer_surface)
|
if (pointer_surface)
|
||||||
widget = gtk_root_get_for_surface (pointer_surface);
|
widget = gtk_root_get_for_surface (pointer_surface);
|
||||||
|
Loading…
Reference in New Issue
Block a user