[gtk/wip/matthiasc/popup2: 123/126] Remove gdk_surface_get_root_coords as public api



commit 658cc94870c9322cb6c88badee48fc61ee0be758
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 24 23:09:48 2019 -0400

    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.

 docs/reference/gdk/gdk4-sections.txt |  1 -
 gdk/gdkinternals.h                   |  7 +++++++
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]