[gtk/wip/matthiasc/popup2: 102/103] Drop gdk_surface_get_device_position
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 102/103] Drop gdk_surface_get_device_position
- Date: Tue, 26 Mar 2019 00:16:28 +0000 (UTC)
commit 09d32775ff8499ac97be6d27444d3b27de0b9a5b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 25 08:33:56 2019 -0400
Drop gdk_surface_get_device_position
Not used anymore.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdksurface.c | 37 ------------------------------------
gdk/gdksurface.h | 6 ------
3 files changed, 44 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 0868183467..1a87dffb65 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -266,7 +266,6 @@ gdk_surface_set_urgency_hint
gdk_surface_get_position
gdk_surface_get_frame_extents
gdk_surface_get_origin
-gdk_surface_get_device_position
gdk_surface_get_device_position_double
GdkModifierType
GdkModifierIntent
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index d9db9087a9..098363f44b 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1499,43 +1499,6 @@ gdk_surface_get_device_position_double (GdkSurface *surface,
return NULL;
}
-/**
- * gdk_surface_get_device_position:
- * @surface: a #GdkSurface.
- * @device: pointer #GdkDevice to query to.
- * @x: (out) (allow-none): return location for the X coordinate of @device, or %NULL.
- * @y: (out) (allow-none): return location for the Y coordinate of @device, or %NULL.
- * @mask: (out) (allow-none): return location for the modifier mask, or %NULL.
- *
- * Obtains the current device position and modifier state.
- * The position is given in coordinates relative to the upper left
- * corner of @surface.
- *
- * Use gdk_surface_get_device_position_double() if you need subpixel precision.
- *
- * Returns: (nullable) (transfer none): The surface underneath @device
- * (as with gdk_device_get_surface_at_position()), or %NULL if the
- * surface is not known to GDK.
- **/
-GdkSurface *
-gdk_surface_get_device_position (GdkSurface *surface,
- GdkDevice *device,
- gint *x,
- gint *y,
- GdkModifierType *mask)
-{
- gdouble tmp_x, tmp_y;
-
- surface = gdk_surface_get_device_position_double (surface, device,
- &tmp_x, &tmp_y, mask);
- if (x)
- *x = round (tmp_x);
- if (y)
- *y = round (tmp_y);
-
- return surface;
-}
-
static void
gdk_surface_raise_internal (GdkSurface *surface)
{
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 023ff78b6c..50720a51d4 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -606,12 +606,6 @@ void gdk_surface_get_frame_extents (GdkSurface *surface,
GDK_AVAILABLE_IN_ALL
gint gdk_surface_get_scale_factor (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-GdkSurface * gdk_surface_get_device_position (GdkSurface *surface,
- GdkDevice *device,
- gint *x,
- gint *y,
- GdkModifierType *mask);
GDK_AVAILABLE_IN_ALL
GdkSurface * gdk_surface_get_device_position_double (GdkSurface *surface,
GdkDevice *device,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]