summaryrefslogtreecommitdiff
path: root/gtk/gtknative.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-28 16:22:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:24:37 +0000
commitd51c85cf4edeac31492014cc1c141692feef3ff6 (patch)
tree29e374f0e86772089973ba2ffcab62529e441cd9 /gtk/gtknative.c
parent12a16a298bcf4ac07723dac7371711b732db6286 (diff)
downloadgtk+-d51c85cf4edeac31492014cc1c141692feef3ff6.tar.gz
native: Add to docs
Diffstat (limited to 'gtk/gtknative.c')
-rw-r--r--gtk/gtknative.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtknative.c b/gtk/gtknative.c
index 4f5feb0593..5b8f760349 100644
--- a/gtk/gtknative.c
+++ b/gtk/gtknative.c
@@ -112,6 +112,15 @@ gtk_native_get_surface_transform (GtkNative *self,
return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
}
+/**
+ * gtk_native_check_resize:
+ * @self: a #GtkNative
+ *
+ * Reposition and resize a #GtkNative.
+ *
+ * Widgets need to call this function on their attached
+ * native widgets when they receive a new size allocation.
+ */
void
gtk_native_check_resize (GtkNative *self)
{