summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-17 16:01:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-17 16:01:08 -0400
commit93d4253c93c2817c1d9c27ed2c702ed400308186 (patch)
tree61f1e20ce53077056015b8d6baf1ef50c3eec234
parentc0faf0c6b60508be67770f23bbbd79acae0bfb89 (diff)
downloadgtk+-93d4253c93c2817c1d9c27ed2c702ed400308186.tar.gz
native: Make gtk_native_get_surface_transform public
This api is needed to translate between surface and widget coordinates.
-rw-r--r--docs/reference/gtk/gtk4-sections.txt1
-rw-r--r--gtk/gtknative.h5
-rw-r--r--gtk/gtknativeprivate.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 1daaa1ad22..641582d021 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -6617,6 +6617,7 @@ gtk_native_get_for_surface
gtk_native_get_surface
gtk_native_get_renderer
gtk_native_check_resize
+gtk_native_get_surface_transform
<SUBSECTION Private>
gtk_native_get_type
diff --git a/gtk/gtknative.h b/gtk/gtknative.h
index bca65089e3..600584bad3 100644
--- a/gtk/gtknative.h
+++ b/gtk/gtknative.h
@@ -67,6 +67,11 @@ GdkSurface *gtk_native_get_surface (GtkNative *self);
GDK_AVAILABLE_IN_ALL
GskRenderer *gtk_native_get_renderer (GtkNative *self);
+GDK_AVAILABLE_IN_ALL
+void gtk_native_get_surface_transform (GtkNative *self,
+ int *x,
+ int *y);
+
G_END_DECLS
#endif /* __GTK_NATIVE_H__ */
diff --git a/gtk/gtknativeprivate.h b/gtk/gtknativeprivate.h
index c6b62bd67b..ec33c017b1 100644
--- a/gtk/gtknativeprivate.h
+++ b/gtk/gtknativeprivate.h
@@ -5,10 +5,6 @@
G_BEGIN_DECLS
-void gtk_native_get_surface_transform (GtkNative *self,
- int *x,
- int *y);
-
G_END_DECLS
#endif /* __GTK_NATIVE_PRIVATE_H__ */