diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-24 23:09:48 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-26 19:18:40 -0400 |
commit | 658cc94870c9322cb6c88badee48fc61ee0be758 (patch) | |
tree | 39f1416c0dc954bd9ac5c07f1bea7ce1d0722d63 | |
parent | 409ef8c5946ea7a2dbfcc0abff176b3f0658b472 (diff) | |
download | gtk+-658cc94870c9322cb6c88badee48fc61ee0be758.tar.gz |
Remove gdk_surface_get_root_coords as public api
We still need to keep the vfunc around, since the
fallback implementation for move_to_rect uses it.
So, a GDK backend must either have root coordinates
or implement move_to_rect.
-rw-r--r-- | docs/reference/gdk/gdk4-sections.txt | 1 | ||||
-rw-r--r-- | gdk/gdkinternals.h | 7 | ||||
-rw-r--r-- | gdk/gdksurface.h | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 570725e00c..3dc597dcca 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -268,7 +268,6 @@ gdk_surface_get_position gdk_surface_get_root_origin gdk_surface_get_frame_extents gdk_surface_get_origin -gdk_surface_get_root_coords gdk_surface_get_device_position gdk_surface_get_device_position_double GdkModifierType diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 53fa916a64..9edb5a8e06 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -333,6 +333,13 @@ void gdk_synthesize_surface_state (GdkSurface *surface, GdkSurfaceState unset_flags, GdkSurfaceState set_flags); +void gdk_surface_get_root_coords (GdkSurface *surface, + gint x, + gint y, + gint *root_x, + gint *root_y); + + G_END_DECLS #endif /* __GDK_INTERNALS_H__ */ diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index ec5df30b66..52f5e221c2 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -597,21 +597,15 @@ GDK_AVAILABLE_IN_ALL int gdk_surface_get_width (GdkSurface *surface); GDK_AVAILABLE_IN_ALL int gdk_surface_get_height (GdkSurface *surface); -GDK_DEPRECATED +GDK_AVAILABLE_IN_ALL void gdk_surface_get_position (GdkSurface *surface, gint *x, gint *y); -GDK_DEPRECATED +GDK_AVAILABLE_IN_ALL gint gdk_surface_get_origin (GdkSurface *surface, gint *x, gint *y); GDK_DEPRECATED -void gdk_surface_get_root_coords (GdkSurface *surface, - gint x, - gint y, - gint *root_x, - gint *root_y); -GDK_DEPRECATED void gdk_surface_get_root_origin (GdkSurface *surface, gint *x, gint *y); |