[gtk/wip/matthiasc/popup4: 55/57] Drop gdk_surface_get_root_origin
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 55/57] Drop gdk_surface_get_root_origin
- Date: Fri, 19 Apr 2019 19:22:49 +0000 (UTC)
commit 8cce2ea28d5ed11fb74d350ce483d0ab011c18bd
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 3e7dc77710..9eb63c083b 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 a51a0b988a..5bf6411b7a 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -3133,32 +3133,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 ba07f56af5..6b027ede57 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -607,10 +607,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]