Commit 5c645db5 authored by Sébastien Lafargue's avatar Sébastien Lafargue
Browse files

snippets: fix transfer annotations

*_ref return value is (transfer full)
(in) parameters are defaulted to (transfer none)

https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations
parent 37051286
......@@ -282,7 +282,7 @@ snippet gobject_boxed_ref
*
* Increments the reference count of @self by one.
*
* Returns: (transfer none): @self
* Returns: (transfer full): @self
*/
$2 *
$3_ref ($2 *self)
......@@ -297,7 +297,7 @@ snippet gobject_boxed_ref
/**
* $3_unref:
* @self: (transfer none): A #$2
* @self: A #$2
*
* Decrements the reference count of @self by one, freeing the structure when
* the reference count reaches zero.
......@@ -641,4 +641,4 @@ snippet gobj_set_property
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment