diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-12 14:31:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-12 14:33:24 +0100 |
commit | 25bcec5cbb6014ed5c88bd1bf75980c2e220aa29 (patch) | |
tree | a882aced61f02590edcbe3c1d05279eaa0fdff41 /gtk/gtklayoutmanager.h | |
parent | eba5232e35bc17d609e51b49a51ea5702cda3af4 (diff) | |
download | gtk+-25bcec5cbb6014ed5c88bd1bf75980c2e220aa29.tar.gz |
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
Diffstat (limited to 'gtk/gtklayoutmanager.h')
-rw-r--r-- | gtk/gtklayoutmanager.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); |