[gimp] Fix some gobject-introspection annotations



commit 5ca9a38ea4c988e6c248c7a39108ff626b49f67d
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Dec 2 12:46:05 2021 +0100

    Fix some gobject-introspection annotations

 libgimpconfig/gimpscanner.c | 4 ++--
 libgimpmath/gimpvector.c    | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgimpconfig/gimpscanner.c b/libgimpconfig/gimpscanner.c
index 6860d05cd1..a4204c4f75 100644
--- a/libgimpconfig/gimpscanner.c
+++ b/libgimpconfig/gimpscanner.c
@@ -465,7 +465,7 @@ gimp_scanner_parse_string_no_validate (GimpScanner  *scanner,
  * @scanner: A #GimpScanner created by gimp_scanner_new_file() or
  *           gimp_scanner_new_string()
  * @length: Length of the data to parse
- * @dest: (out) (array): Return location for the parsed data
+ * @dest: (out) (array length=length): Return location for the parsed data
  *
  * Returns: %TRUE on success
  *
@@ -787,7 +787,7 @@ gimp_scanner_parse_color (GimpScanner *scanner,
  * gimp_scanner_parse_matrix2:
  * @scanner: A #GimpScanner created by gimp_scanner_new_file() or
  *           gimp_scanner_new_string()
- * @dest: Pointer to a matrix to store the result
+ * @dest: (out caller-allocates): Pointer to a matrix to store the result
  *
  * Returns: %TRUE on success
  *
diff --git a/libgimpmath/gimpvector.c b/libgimpmath/gimpvector.c
index 28cc6654c0..090e448546 100644
--- a/libgimpmath/gimpvector.c
+++ b/libgimpmath/gimpvector.c
@@ -268,7 +268,7 @@ gimp_vector2_neg_val (GimpVector2 vector)
 
 /**
  * gimp_vector2_add:
- * @result: destination for the resulting #GimpVector2.
+ * @result: (out caller-allocates): destination for the resulting #GimpVector2.
  * @vector1: a pointer to the first #GimpVector2.
  * @vector2: a pointer to the second #GimpVector2.
  *
@@ -308,7 +308,7 @@ gimp_vector2_add_val (GimpVector2 vector1,
 
 /**
  * gimp_vector2_sub:
- * @result: the destination for the resulting #GimpVector2.
+ * @result: (out caller-allocates): the destination for the resulting #GimpVector2.
  * @vector1: a pointer to the first #GimpVector2.
  * @vector2: a pointer to the second #GimpVector2.
  *
@@ -734,7 +734,7 @@ gimp_vector3_neg_val (GimpVector3 vector)
 
 /**
  * gimp_vector3_add:
- * @result: destination for the resulting #GimpVector3.
+ * @result: (out caller-allocates): destination for the resulting #GimpVector3.
  * @vector1: a pointer to the first #GimpVector3.
  * @vector2: a pointer to the second #GimpVector3.
  *
@@ -776,7 +776,7 @@ gimp_vector3_add_val (GimpVector3 vector1,
 
 /**
  * gimp_vector3_sub:
- * @result: the destination for the resulting #GimpVector3.
+ * @result: (out caller-allocates): the destination for the resulting #GimpVector3.
  * @vector1: a pointer to the first #GimpVector3.
  * @vector2: a pointer to the second #GimpVector3.
  *


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