summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-05-06 19:31:07 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-05-06 23:09:53 +0100
commit56d3a79990abded5c308df23ef5cb8150775a7a7 (patch)
tree36aeee375095b024d0baa777fe662bea030fb049
parentddd113ac984db56c3297ff80dfd3f259594ac038 (diff)
downloadgtk+-56d3a79990abded5c308df23ef5cb8150775a7a7.tar.gz
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.
-rw-r--r--gtk/gtktextchild.c5
1 files 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,