[gimp] libgimp: fix (destroy) and (closure) annotations.



commit 269343832a944dc3f5832d5d272f9432497ee643
Author: Jehan <jehan girinstud io>
Date:   Sat Mar 20 16:37:30 2021 +0100

    libgimp: fix (destroy) and (closure) annotations.
    
    This fixes the following warning (and 4 similar others):
    > libgimp/gimpimagecombobox.c:133: Warning: GimpUi: "destroy" annotation needs one option, none given
    
    Brought by commit df766d5443. It's my fault for not properly reviewing
    the patch as I failed to notice the new warnings.

 libgimp/gimpimagecombobox.c |  6 +++---
 libgimp/gimpitemcombobox.c  | 24 ++++++++++++------------
 2 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/libgimp/gimpimagecombobox.c b/libgimp/gimpimagecombobox.c
index 2a91b391b8..669756c19e 100644
--- a/libgimp/gimpimagecombobox.c
+++ b/libgimp/gimpimagecombobox.c
@@ -128,9 +128,9 @@ gimp_image_combo_box_finalize (GObject *object)
 
 /**
  * gimp_image_combo_box_new:
- * @constraint:   (nullable):  a #GimpImageConstraintFunc or %NULL
- * @data:         (closure):   a pointer that is passed to @constraint
- * @data_destroy: (destroy):   Destroy function for @data.
+ * @constraint: (nullable):       A #GimpImageConstraintFunc or %NULL
+ * @data: (closure constraint):   A pointer that is passed to @constraint
+ * @data_destroy: (destroy data): Destroy function for @data.
  *
  * Creates a new #GimpIntComboBox filled with all currently opened
  * images. If a @constraint function is specified, it is called for
diff --git a/libgimp/gimpitemcombobox.c b/libgimp/gimpitemcombobox.c
index 23b52887ce..68df044596 100644
--- a/libgimp/gimpitemcombobox.c
+++ b/libgimp/gimpitemcombobox.c
@@ -167,9 +167,9 @@ gimp_drawable_combo_box_init (GimpDrawableComboBox *combo_box)
 
 /**
  * gimp_drawable_combo_box_new:
- * @constraint:     (nullable):   a #GimpItemConstraintFunc or %NULL
- * @data:           (closure):    a pointer that is passed to @constraint
- * @data_destroy:   (destroy):    Destroy function for @data
+ * @constraint: (nullable):       A #GimpItemConstraintFunc or %NULL
+ * @data: (closure constraint):   A pointer that is passed to @constraint
+ * @data_destroy: (destroy data): Destroy function for @data
  *
  * Creates a new #GimpIntComboBox filled with all currently opened
  * drawables. If a @constraint function is specified, it is called for
@@ -223,9 +223,9 @@ gimp_channel_combo_box_init (GimpChannelComboBox *combo_box)
 
 /**
  * gimp_channel_combo_box_new:
- * @constraint:    (nullable):   a #GimpItemConstraintFunc or %NULL
- * @data:          (closure):    a pointer that is passed to @constraint
- * @data_destroy:  (destroy):    Destroy function for @data
+ * @constraint: (nullable):       A #GimpItemConstraintFunc or %NULL
+ * @data: (closure constraint):   A pointer that is passed to @constraint
+ * @data_destroy: (destroy data): Destroy function for @data
  *
  * Creates a new #GimpIntComboBox filled with all currently opened
  * channels. See gimp_drawable_combo_box_new() for more information.
@@ -272,9 +272,9 @@ gimp_layer_combo_box_init (GimpLayerComboBox *combo_box)
 
 /**
  * gimp_layer_combo_box_new:
- * @constraint:     (nullable):   a #GimpItemConstraintFunc or %NULL
- * @data:           (closure):    a pointer that is passed to @constraint
- * @data_destroy:   (destroy):    Destroy function for @data
+ * @constraint: (nullable):       A #GimpItemConstraintFunc or %NULL
+ * @data: (closure constraint):   A pointer that is passed to @constraint
+ * @data_destroy: (destroy data): Destroy function for @data
  *
  * Creates a new #GimpIntComboBox filled with all currently opened
  * layers. See gimp_drawable_combo_box_new() for more information.
@@ -322,9 +322,9 @@ gimp_vectors_combo_box_init (GimpVectorsComboBox *combo_box)
 
 /**
  * gimp_vectors_combo_box_new:
- * @constraint:     (nullable):   a #GimpItemConstraintFunc or %NULL
- * @data:           (closure):    a pointer that is passed to @constraint
- * @data_destroy:   (destroy):    Destroy function for @data
+ * @constraint: (nullable):       A #GimpItemConstraintFunc or %NULL
+ * @data: (closure constraint):   A pointer that is passed to @constraint
+ * @data_destroy: (destroy data): Destroy function for @data
  *
  * Creates a new #GimpIntComboBox filled with all currently opened
  * vectors objects. If a @constraint function is specified, it is called for


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