From 56d3a79990abded5c308df23ef5cb8150775a7a7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 6 May 2020 19:31:07 +0100 Subject: [PATCH] Annotate gtk_text_child_anchor_get_widgets() correctly We switched from returning a list to returning a C array, which means we need to update the introspection annotation and the documentation to match the implementation. --- gtk/gtktextchild.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtktextchild.c b/gtk/gtktextchild.c index fb2b0f14c8..9ef3184673 100644 --- a/gtk/gtktextchild.c +++ b/gtk/gtktextchild.c @@ -432,10 +432,11 @@ gtk_text_child_anchor_finalize (GObject *obj) * @anchor: a #GtkTextChildAnchor * * Gets a list of all widgets anchored at this child anchor. - * The returned list should be freed with g_list_free(). * + * The order in which the widgets are returned is not defined. * - * Returns: (element-type GtkWidget) (transfer container): list of widgets anchored at @anchor + * Returns: (array length=out_len) (transfer container): an + * array of widgets anchored at @anchor **/ GtkWidget ** gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor,