[gtk/wip/otte/matthiasc/popup2: 90/92] Drop gdk_surface_get_root_origin
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/matthiasc/popup2: 90/92] Drop gdk_surface_get_root_origin
- Date: Fri, 19 Apr 2019 16:12:52 +0000 (UTC)
commit 36ff6226980212adabd4586c9f6a70c3435c845c
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 3dc597dcca..a75f46723c 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -265,7 +265,6 @@ gdk_surface_set_skip_taskbar_hint
gdk_surface_set_skip_pager_hint
gdk_surface_set_urgency_hint
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 3edadd016d..fc161b7439 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -3196,32 +3196,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 52f5e221c2..af521f264d 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -605,10 +605,6 @@ GDK_AVAILABLE_IN_ALL
gint gdk_surface_get_origin (GdkSurface *surface,
gint *x,
gint *y);
-GDK_DEPRECATED
-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]