Commit 03eb455c authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Rename gdk_device_get_position_double

We can drop the double suffix now.
parent 6288043e
......@@ -509,7 +509,7 @@ gdk_device_ungrab
<SUBSECTION>
gdk_device_get_state
gdk_device_get_position_double
gdk_device_get_position
gdk_device_get_surface_at_position
gdk_device_get_surface_at_position_double
gdk_device_get_history
......
......@@ -529,7 +529,7 @@ gdk_device_get_state (GdkDevice *device,
}
/**
* gdk_device_get_position_double:
* gdk_device_get_position:
* @device: pointer device to query status about.
* @x: (out) (allow-none): location to store root window X coordinate of @device, or %NULL.
* @y: (out) (allow-none): location to store root window Y coordinate of @device, or %NULL.
......@@ -540,9 +540,9 @@ gdk_device_get_state (GdkDevice *device,
* unless there is an ongoing grab on them. See gdk_device_grab().
**/
void
gdk_device_get_position_double (GdkDevice *device,
gdouble *x,
gdouble *y)
gdk_device_get_position (GdkDevice *device,
double *x,
double *y)
{
GdkDisplay *display;
gdouble tmp_x, tmp_y;
......
......@@ -173,9 +173,9 @@ GdkSurface *
gint *win_x,
gint *win_y);
GDK_AVAILABLE_IN_ALL
void gdk_device_get_position_double (GdkDevice *device,
gdouble *x,
gdouble *y);
void gdk_device_get_position (GdkDevice *device,
double *x,
double *y);
GDK_AVAILABLE_IN_ALL
GdkSurface *
gdk_device_get_surface_at_position_double
......
......@@ -1732,7 +1732,7 @@ _gdk_win32_surface_drag_begin (GdkSurface *surface,
GDK_NOTE (DND, g_print ("_gdk_win32_surface_drag_begin\n"));
gdk_device_get_position_double (device, &px, &px);
gdk_device_get_position (device, &px, &px);
x_root = round (px) + dx;
y_root = round (py) + dy;
......
......@@ -2098,7 +2098,7 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface,
precache_target_list (drag);
gdk_device_get_position_double (device, &px, &py);
gdk_device_get_position (device, &px, &py);
x_root = round (px) + dx;
y_root = round (py) + dy;
......
......@@ -3139,7 +3139,7 @@ gtk_notebook_drag_end (GtkWidget *widget,
GtkNotebook *dest_notebook = NULL;
double x, y;
gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, round (x), round (y), &dest_notebook);
......@@ -3188,7 +3188,7 @@ gtk_notebook_drag_failed (GtkWidget *widget,
GtkNotebook *dest_notebook = NULL;
double x, y;
gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, round (x), round (y), &dest_notebook);
......
......@@ -8642,9 +8642,9 @@ synth_crossing (GtkWidget *widget,
event->any.send_event = TRUE;
event->crossing.child_surface = g_object_ref (surface);
event->crossing.time = GDK_CURRENT_TIME;
gdk_device_get_position_double (device,
&event->crossing.x_root,
&event->crossing.y_root);
gdk_device_get_position (device,
&event->crossing.x_root,
&event->crossing.y_root);
gdk_surface_get_device_position (surface,
device,
&event->crossing.x,
......
......@@ -7265,7 +7265,7 @@ get_monitor_containing_pointer (GtkWindow *window)
GdkDevice *pointer;
pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
gdk_device_get_position_double (pointer, &px, &py);
gdk_device_get_position (pointer, &px, &py);
return gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
}
......@@ -7432,7 +7432,7 @@ gtk_window_compute_configure_request (GtkWindow *window,
pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
gdk_device_get_position_double (pointer, &px, &py);
gdk_device_get_position (pointer, &px, &py);
monitor = gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
x = round (px) - w / 2;
......
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