[glib/issue-2299] Fix the transfer annotations for GClosure constructors
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/issue-2299] Fix the transfer annotations for GClosure constructors
- Date: Mon, 18 Jan 2021 12:19:59 +0000 (UTC)
commit 83009a5281c08501ec6feedb1b3df94fb9b76055
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jan 18 12:16:55 2021 +0000
Fix the transfer annotations for GClosure constructors
The GClosure constructors in GObject return an instance with a floating
reference.
Fixes: #2299
gobject/gobject.c | 12 ++++++------
1 file 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]