[gnome-builder] snippets: fix transfer annotations



commit 5c645db54b992605ab757727bb18f5431ddb0e40
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Mon Dec 10 22:26:13 2018 +0100

    snippets: fix transfer annotations
    
    *_ref return value is (transfer full)
    (in) parameters are defaulted to (transfer none)
    
    https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations

 data/snippets/gobject.snippets | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/snippets/gobject.snippets b/data/snippets/gobject.snippets
index 4cd3d061b..a6785ed60 100644
--- a/data/snippets/gobject.snippets
+++ b/data/snippets/gobject.snippets
@@ -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


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