diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-01-18 12:16:55 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-01-19 11:36:01 +0200 |
commit | e97ebfe62840951eb1b8e50148f8171633ad2697 (patch) | |
tree | 42107e71a52ed3a0a06f9efe75b24f5da8ad8afa | |
parent | 4c83079c0d8f502ee80e821ce0228a78010dde78 (diff) | |
download | glib-issue-2299.tar.gz |
Fix the transfer annotations for GClosure constructorsissue-2299
The GClosure constructors in GObject return an instance with a floating
reference.
Fixes: #2299
-rw-r--r-- | gobject/gobject.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gobject/gobject.c b/gobject/gobject.c index 2617dca3e..750a7d120 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -4361,9 +4361,9 @@ g_object_watch_closure (GObject *object, * @object and the created closure. This function is mainly useful * when implementing new types of closures. * - * Returns: (transfer full): a newly allocated #GClosure + * Returns: (transfer floating): a newly allocated #GClosure */ -GClosure* +GClosure * g_closure_new_object (guint sizeof_closure, GObject *object) { @@ -4389,9 +4389,9 @@ g_closure_new_object (guint sizeof_closure, * associated with a #GObject, and want the callback to no longer run * after the object is is freed. * - * Returns: a new #GCClosure + * Returns: (transfer floating): a new #GCClosure */ -GClosure* +GClosure * g_cclosure_new_object (GCallback callback_func, GObject *object) { @@ -4418,9 +4418,9 @@ g_cclosure_new_object (GCallback callback_func, * associated with a #GObject, and want the callback to no longer run * after the object is is freed. * - * Returns: a new #GCClosure + * Returns: (transfer floating): a new #GCClosure */ -GClosure* +GClosure * g_cclosure_new_object_swap (GCallback callback_func, GObject *object) { |