Commit c0aaa431 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Rename gdk_device_get_surface_at_position_double

We can drop the double suffix now.
parent 5935f26a
Pipeline #70919 passed with stages
in 23 minutes and 55 seconds
......@@ -71,7 +71,7 @@ find_toplevel_at_pointer (GdkDisplay *display)
GdkSurface *pointer_window;
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)
widget = GTK_WIDGET (gtk_root_get_for_surface (pointer_window));
......
......@@ -510,7 +510,7 @@ gdk_device_ungrab
<SUBSECTION>
gdk_device_get_state
gdk_device_get_position
gdk_device_get_surface_at_position_double
gdk_device_get_surface_at_position
gdk_device_get_history
gdk_device_free_history
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.
* @win_x: (out) (allow-none): return location for the X coordinate of the device location,
* relative to the surface origin, or %NULL.
......@@ -587,9 +587,9 @@ gdk_device_get_position (GdkDevice *device,
* device position, or %NULL.
**/
GdkSurface *
gdk_device_get_surface_at_position_double (GdkDevice *device,
gdouble *win_x,
gdouble *win_y)
gdk_device_get_surface_at_position (GdkDevice *device,
double *win_x,
double *win_y)
{
gdouble tmp_x, tmp_y;
GdkSurface *surface;
......
......@@ -171,11 +171,9 @@ void gdk_device_get_position (GdkDevice *device,
double *x,
double *y);
GDK_AVAILABLE_IN_ALL
GdkSurface *
gdk_device_get_surface_at_position_double
(GdkDevice *device,
gdouble *win_x,
gdouble *win_y);
GdkSurface * gdk_device_get_surface_at_position (GdkDevice *device,
double *win_x,
double *win_y);
GDK_AVAILABLE_IN_ALL
gboolean gdk_device_get_history (GdkDevice *device,
GdkSurface *surface,
......
......@@ -2447,14 +2447,14 @@ gdk_wayland_surface_map (GdkSurface *surface)
GDK_SURFACE_IMPL_WAYLAND (attached_grab_surface->impl);
grab_device = gdk_seat_get_pointer (attached_impl->grab_input_seat);
transient_for =
gdk_device_get_surface_at_position_double (grab_device, NULL, NULL);
gdk_device_get_surface_at_position (grab_device, NULL, NULL);
}
}
else
{
grab_device = gdk_seat_get_pointer (impl->grab_input_seat);
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)
......
......@@ -902,7 +902,7 @@ gdk_input_other_event (GdkDisplay *display,
}
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)
g_object_ref (window);
......
......@@ -394,7 +394,7 @@ gtk_tooltip_trigger_tooltip_query (GtkWidget *widget)
/* Trigger logic as if the mouse moved */
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)
return;
......
......@@ -43,7 +43,7 @@ find_widget_at_pointer (GdkDevice *device)
GtkWidget *widget = NULL;
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)
widget = gtk_root_get_for_surface (pointer_surface);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment