[gtk/wip/matthiasc/popup4: 73/121] Drop gdk_surface_get_root_origin



commit 28bf8619d5dd507d1f09e9eba45253f7f23b0081
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 24 23:15:01 2019 -0400

    Drop gdk_surface_get_root_origin
    
    It was not used.

 docs/reference/gdk/gdk4-sections.txt |  1 -
 gdk/gdksurface.c                     | 26 --------------------------
 gdk/gdksurface.h                     |  4 ----
 3 files changed, 31 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 6537bb6ba8..b89564673d 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -260,7 +260,6 @@ gdk_surface_set_type_hint
 gdk_surface_get_type_hint
 gdk_surface_set_shadow_width
 gdk_surface_get_position
-gdk_surface_get_root_origin
 gdk_surface_get_frame_extents
 gdk_surface_get_origin
 gdk_surface_get_device_position
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 3980bf26d9..4ec3d9c635 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -3078,32 +3078,6 @@ gdk_surface_set_transient_for (GdkSurface *surface,
   GDK_SURFACE_IMPL_GET_CLASS (surface->impl)->set_transient_for (surface, parent);
 }
 
-/**
- * gdk_surface_get_root_origin:
- * @surface: a toplevel #GdkSurface
- * @x: (out): return location for X position of surface frame
- * @y: (out): return location for Y position of surface frame
- *
- * Obtains the top-left corner of the window manager frame in root
- * surface coordinates.
- *
- **/
-void
-gdk_surface_get_root_origin (GdkSurface *surface,
-                             gint      *x,
-                             gint      *y)
-{
-  GdkRectangle rect;
-
-  gdk_surface_get_frame_extents (surface, &rect);
-
-  if (x)
-    *x = rect.x;
-
-  if (y)
-    *y = rect.y;
-}
-
 /**
  * gdk_surface_get_frame_extents:
  * @surface: a toplevel #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 3249810156..3ad09cd974 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -597,10 +597,6 @@ gint          gdk_surface_get_origin     (GdkSurface      *surface,
                                           gint            *x,
                                           gint            *y);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_get_root_origin (GdkSurface     *surface,
-                                           gint            *x,
-                                           gint            *y);
-GDK_AVAILABLE_IN_ALL
 void          gdk_surface_get_frame_extents (GdkSurface     *surface,
                                              GdkRectangle  *rect);
 


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