diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-25 00:00:14 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-26 19:18:40 -0400 |
commit | b00a103bbf280df3740b1b89967578b30d3732de (patch) | |
tree | a2aef653157af7a215fd3e48a11ebebf9aac61b5 | |
parent | 36ff6226980212adabd4586c9f6a70c3435c845c (diff) | |
download | gtk+-b00a103bbf280df3740b1b89967578b30d3732de.tar.gz |
Remove gdk_surface_get_geometry as public api
We still need to keep the vfunc around, since the
fallback implementation of gdk_display_get_monitor_at_surface
uses it. So, a GDK backend must either have root coordinates
or always return a monitor from monitor_at_surface.
-rw-r--r-- | docs/reference/gdk/gdk4-sections.txt | 1 | ||||
-rw-r--r-- | gdk/gdkinternals.h | 6 | ||||
-rw-r--r-- | gdk/gdksurface.h | 6 |
3 files changed, 6 insertions, 7 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index a75f46723c..0868183467 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -251,7 +251,6 @@ gdk_surface_set_title GDK_PARENT_RELATIVE gdk_surface_set_cursor gdk_surface_get_cursor -gdk_surface_get_geometry gdk_surface_set_geometry_hints gdk_surface_get_width gdk_surface_get_height diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 9edb5a8e06..26b9bb3e86 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -339,6 +339,12 @@ void gdk_surface_get_root_coords (GdkSurface *surface, gint *root_x, gint *root_y); +void gdk_surface_get_geometry (GdkSurface *surface, + gint *x, + gint *y, + gint *width, + gint *height); + G_END_DECLS diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index af521f264d..12ae680870 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -588,12 +588,6 @@ GDK_AVAILABLE_IN_ALL GdkCursor *gdk_surface_get_device_cursor (GdkSurface *surface, GdkDevice *device); GDK_AVAILABLE_IN_ALL -void gdk_surface_get_geometry (GdkSurface *surface, - gint *x, - gint *y, - gint *width, - gint *height); -GDK_AVAILABLE_IN_ALL int gdk_surface_get_width (GdkSurface *surface); GDK_AVAILABLE_IN_ALL int gdk_surface_get_height (GdkSurface *surface); |