[gtk/ebassi/for-master] Properly annotate GtkLayoutManagerClass.create_layout_child()




commit 25bcec5cbb6014ed5c88bd1bf75980c2e220aa29
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Sep 12 14:31:52 2020 +0100

    Properly annotate GtkLayoutManagerClass.create_layout_child()
    
    We're missing the ownership transfer rule for the created GtkLayoutChild
    instance; this makes the virtual function not introspectable.
    
    Fixes: #3156

 gtk/gtklayoutmanager.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gtk/gtklayoutmanager.h b/gtk/gtklayoutmanager.h
index 3066dc5660..314d4a0625 100644
--- a/gtk/gtklayoutmanager.h
+++ b/gtk/gtklayoutmanager.h
@@ -77,6 +77,16 @@ struct _GtkLayoutManagerClass
 
   GType              layout_child_type;
 
+  /**
+   * GtkLayoutManagerClass::create_layout_child:
+   * @manager: the #GtkLayoutManager
+   * @widget: the widget using the @manager
+   * @for_child: the child of @widget
+   *
+   * Create a #GtkLayoutChild instance for the given @for_child widget.
+   *
+   * Returns: (transfer full): a #GtkLayoutChild
+   */
   GtkLayoutChild *   (* create_layout_child) (GtkLayoutManager *manager,
                                               GtkWidget        *widget,
                                               GtkWidget        *for_child);


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