[glib: 1/3] gparam: Fix transfer annotation for g_param_spec_internal()




commit d2cd34969a7052b83aa38e4a16836b3c3619599a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Sat Dec 12 17:59:45 2020 +0000

    gparam: Fix transfer annotation for g_param_spec_internal()
    
    `GParamSpec`s are floating by default.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 gobject/gparam.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gobject/gparam.c b/gobject/gparam.c
index b90b468cf..948c22dfe 100644
--- a/gobject/gparam.c
+++ b/gobject/gparam.c
@@ -439,7 +439,8 @@ g_param_spec_is_valid_name (const gchar *name)
  * @blurb, which should be a somewhat longer description, suitable for
  * e.g. a tooltip. The @nick and @blurb should ideally be localized.
  *
- * Returns: (type GObject.ParamSpec): (transfer full): a newly allocated #GParamSpec instance
+ * Returns: (type GObject.ParamSpec): (transfer floating): a newly allocated
+ *     #GParamSpec instance, which is initially floating
  */
 gpointer
 g_param_spec_internal (GType        param_type,


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