[gimp] gimpenumwidgets: Apply (transfer none) annotation



commit 09094fe66fe8041a832ae36c641cbc2b82734829
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon May 18 13:00:58 2020 +0200

    gimpenumwidgets: Apply (transfer none) annotation
    
    `(out)` implies `(transfer full)`, which isn't the case here. Let's fix
    it before anyone tries to use it and gets hard to debug problems.

 libgimpwidgets/gimpenumwidgets.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/libgimpwidgets/gimpenumwidgets.c b/libgimpwidgets/gimpenumwidgets.c
index 35fe0316c2..0d11ce27f1 100644
--- a/libgimpwidgets/gimpenumwidgets.c
+++ b/libgimpwidgets/gimpenumwidgets.c
@@ -49,7 +49,8 @@
  *                        #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Creates a new group of #GtkRadioButtons representing the enum
  * values.  A group of radiobuttons is a good way to represent enums
@@ -95,7 +96,8 @@ gimp_enum_radio_box_new (GType            enum_type,
  *                 #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Just like gimp_enum_radio_box_new(), this function creates a group
  * of radio buttons, but additionally it supports limiting the range
@@ -175,7 +177,8 @@ gimp_enum_radio_box_new_with_range (GType            enum_type,
  *                        #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Calls gimp_enum_radio_box_new() and puts the resulting vbox into a
  * #GtkFrame.
@@ -227,7 +230,8 @@ gimp_enum_radio_frame_new (GType            enum_type,
  *                        #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Calls gimp_enum_radio_box_new_with_range() and puts the resulting
  * vertical box into a #GtkFrame.
@@ -282,7 +286,8 @@ gimp_enum_radio_frame_new_with_range (GType            enum_type,
  *                        #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Creates a horizontal box of radio buttons with named icons. The
  * icon name for each icon is created by appending the enum_value's
@@ -332,7 +337,8 @@ gimp_enum_icon_box_new (GType            enum_type,
  *                        #GtkRadioButton that is created.
  * @callback_data: data to pass to the @callback.
  * @callback_data_destroy: Destroy function for @callback_data.
- * @first_button: (out) (optional): returns the first button in the created group.
+ * @first_button: (out) (optional) (transfer none):
+ *                Returns the first button in the created group.
  *
  * Just like gimp_enum_icon_box_new(), this function creates a group
  * of radio buttons, but additionally it supports limiting the range


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