summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-25 20:28:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-03-26 18:12:55 -0400
commit6288043ec29307d089bc46346f7557fa1501a9b9 (patch)
tree6120f6d56435c8a132966e30c07920295232e0a9
parent7e4707642adc0152fdb9fb6d6aa6d01c605bebbf (diff)
downloadgtk+-6288043ec29307d089bc46346f7557fa1501a9b9.tar.gz
Drop gdk_device_get_position
It is no longer used.
-rw-r--r--docs/reference/gdk/gdk4-sections.txt1
-rw-r--r--gdk/gdkdevice.c26
-rw-r--r--gdk/gdkdevice.h4
3 files changed, 0 insertions, 31 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 76bfc40fec..5e91f9c21e 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -509,7 +509,6 @@ gdk_device_ungrab
<SUBSECTION>
gdk_device_get_state
-gdk_device_get_position
gdk_device_get_position_double
gdk_device_get_surface_at_position
gdk_device_get_surface_at_position_double
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 7544c4e012..2044becfe5 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -568,32 +568,6 @@ gdk_device_get_position_double (GdkDevice *device,
}
/**
- * 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.
- *
- * Gets the current location of @device. As a slave device
- * coordinates are those of its master pointer, This function
- * may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE,
- * unless there is an ongoing grab on them, see gdk_device_grab().
- **/
-void
-gdk_device_get_position (GdkDevice *device,
- gint *x,
- gint *y)
-{
- gdouble tmp_x, tmp_y;
-
- gdk_device_get_position_double (device, &tmp_x, &tmp_y);
- if (x)
- *x = round (tmp_x);
- if (y)
- *y = round (tmp_y);
-}
-
-
-/**
* gdk_device_get_surface_at_position_double:
* @device: pointer #GdkDevice to query info to.
* @win_x: (out) (allow-none): return location for the X coordinate of the device location,
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index f491189fdf..aa07f3f9b1 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -167,10 +167,6 @@ void gdk_device_get_state (GdkDevice *device,
gdouble *axes,
GdkModifierType *mask);
GDK_AVAILABLE_IN_ALL
-void gdk_device_get_position (GdkDevice *device,
- gint *x,
- gint *y);
-GDK_AVAILABLE_IN_ALL
GdkSurface *
gdk_device_get_surface_at_position
(GdkDevice *device,