[gtk/ebassi/for-master: 2/2] Annotate gtk_text_child_anchor_get_widgets() correctly



commit bc555c8e46d1c9f3e3c1a656863370196b046660
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed May 6 19:31:07 2020 +0100

    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..7e12a210f7 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 none): an array of widgets
+ *   anchored at @anchor
  **/
 GtkWidget **
 gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]