[gtk/wip/matthiasc/popup2] Drop gdk_device_get_surface_at_position



commit c0c584df34526d5e38abb71f9c0d5b6578d7ddce
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 25 20:39:08 2019 -0400

    Drop gdk_device_get_surface_at_position
    
    It is no longer used.

 docs/reference/gdk/gdk4-sections.txt |  1 -
 gdk/gdkdevice.c                      | 37 ------------------------------------
 gdk/gdkdevice.h                      |  6 ------
 3 files changed, 44 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 2e1b14aa64..427294d5ed 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -498,7 +498,6 @@ gdk_device_ungrab
 <SUBSECTION>
 gdk_device_get_state
 gdk_device_get_position
-gdk_device_get_surface_at_position
 gdk_device_get_surface_at_position_double
 gdk_device_get_history
 gdk_device_free_history
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index f59fe002bc..5c41d72e4e 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -609,43 +609,6 @@ gdk_device_get_surface_at_position_double (GdkDevice  *device,
   return surface;
 }
 
-/**
- * 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.
- * @win_y: (out) (allow-none): return location for the Y coordinate of the device location,
- *         relative to the surface origin, or %NULL.
- *
- * Obtains the surface underneath @device, returning the location of the device in @win_x and @win_y. Returns
- * %NULL if the surface tree under @device is not known to GDK (for example, belongs to another application).
- *
- * 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().
- *
- * Returns: (nullable) (transfer none): the #GdkSurface under the
- * device position, or %NULL.
- **/
-GdkSurface *
-gdk_device_get_surface_at_position (GdkDevice  *device,
-                                   gint       *win_x,
-                                   gint       *win_y)
-{
-  gdouble tmp_x, tmp_y;
-  GdkSurface *surface;
-
-  surface =
-    gdk_device_get_surface_at_position_double (device, &tmp_x, &tmp_y);
-
-  if (win_x)
-    *win_x = round (tmp_x);
-  if (win_y)
-    *win_y = round (tmp_y);
-
-  return surface;
-}
-
 /**
  * gdk_device_get_history: (skip)
  * @device: a #GdkDevice
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index d86179b638..24150e5afb 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -167,12 +167,6 @@ void     gdk_device_get_state    (GdkDevice         *device,
                                   gdouble           *axes,
                                   GdkModifierType   *mask);
 GDK_AVAILABLE_IN_ALL
-GdkSurface *
-         gdk_device_get_surface_at_position
-                                 (GdkDevice         *device,
-                                  gint              *win_x,
-                                  gint              *win_y);
-GDK_AVAILABLE_IN_ALL
 void     gdk_device_get_position (GdkDevice *device,
                                   double    *x,
                                   double    *y);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]