[gtk/wip/matthiasc/popup2] Drop gdk_device_get_position
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2] Drop gdk_device_get_position
- Date: Tue, 26 Mar 2019 00:45:30 +0000 (UTC)
commit 579e04d7028e6b9ff5bdbc9da958ade13f619945
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 25 20:28:08 2019 -0400
Drop gdk_device_get_position
It is no longer used.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdkdevice.c | 26 --------------------------
gdk/gdkdevice.h | 4 ----
3 files changed, 31 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index d534c54a2f..cc25a98c9f 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -497,7 +497,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 a23144676c..271e61d6f5 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -567,32 +567,6 @@ gdk_device_get_position_double (GdkDevice *device,
*y = tmp_y;
}
-/**
- * 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.
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]