summaryrefslogtreecommitdiff
path: root/gtk/gtkarrayimplprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkarrayimplprivate.h')
-rw-r--r--gtk/gtkarrayimplprivate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkarrayimplprivate.h b/gtk/gtkarrayimplprivate.h
index 0027aa5b3e..cfc497e1ab 100644
--- a/gtk/gtkarrayimplprivate.h
+++ b/gtk/gtkarrayimplprivate.h
@@ -96,5 +96,14 @@ gtk_array_free (GtkArray *self,
g_ptr_array_free (self->ptr_array, TRUE);
}
+static inline void **
+gtk_array_get_data (GtkArray *self)
+{
+ if (G_LIKELY (!self->ptr_array))
+ return self->stack_space;
+
+ return self->ptr_array->pdata;
+}
+
#endif