[gtk/wip/matthiasc/popup5: 46/109] Drop gdk_surface_get_root_origin



commit c8769fea8f8747787bc6621f6e600c61ad4f461d
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 bdd16ba830..c19a342795 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -261,7 +261,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 584c0c7ad6..fe6d3757d8 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -3109,32 +3109,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]