[gtk/bilelmoussaoui/missing-out-annotations] g-i: add missing out annotations




commit 99b3ecf4f9c6d1cf953e18fd4e5b84cb837b6595
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sat Jul 10 12:21:45 2021 +0200

    g-i: add missing out annotations

 gdk/gdkcontentformats.c  | 2 +-
 gdk/gdkdisplay.c         | 2 +-
 gsk/gskglshader.c        | 6 +++---
 gsk/gsktransform.c       | 2 +-
 gtk/css/gtkcsssection.c  | 2 +-
 gtk/gtkshortcutaction.c  | 2 +-
 gtk/gtkshortcuttrigger.c | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gdk/gdkcontentformats.c b/gdk/gdkcontentformats.c
index aa0541bd44..90013bb2a5 100644
--- a/gdk/gdkcontentformats.c
+++ b/gdk/gdkcontentformats.c
@@ -223,7 +223,7 @@ gdk_content_formats_unref (GdkContentFormats *formats)
 /**
  * gdk_content_formats_print:
  * @formats: a `GdkContentFormats`
- * @string: a `GString` to print into
+ * @string: (out caller-allocates): a `GString` to print into
  *
  * Prints the given @formats into a string for human consumption.
  *
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 690d21f835..67cc931622 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1447,7 +1447,7 @@ gdk_display_emit_opened (GdkDisplay *display)
  * gdk_display_get_setting:
  * @display: a `GdkDisplay`
  * @name: the name of the setting
- * @value: location to store the value of the setting
+ * @value: (out caller-allocates): location to store the value of the setting
  *
  * Retrieves a desktop-wide setting such as double-click time
  * for the @display.
diff --git a/gsk/gskglshader.c b/gsk/gskglshader.c
index 996601d9c6..c0203dc187 100644
--- a/gsk/gskglshader.c
+++ b/gsk/gskglshader.c
@@ -879,7 +879,7 @@ gsk_gl_shader_get_arg_bool (GskGLShader *shader,
  * @shader: a `GskGLShader`
  * @args: uniform arguments
  * @idx: index of the uniform
- * @out_value: location to store the uniform value in
+ * @out_value: (out caller-allocates): location to store the uniform value in
  *
  * Gets the value of the uniform @idx in the @args block.
  *
@@ -912,7 +912,7 @@ gsk_gl_shader_get_arg_vec2 (GskGLShader     *shader,
  * @shader: a `GskGLShader`
  * @args: uniform arguments
  * @idx: index of the uniform
- * @out_value: location to store the uniform value in
+ * @out_value: (out caller-allocates): location to store the uniform value in
  *
  * Gets the value of the uniform @idx in the @args block.
  *
@@ -945,7 +945,7 @@ gsk_gl_shader_get_arg_vec3 (GskGLShader     *shader,
  * @shader: a `GskGLShader`
  * @args: uniform arguments
  * @idx: index of the uniform
- * @out_value: location to store set the uniform value in
+ * @out_value: (out caller-allocates): location to store set the uniform value in
  *
  * Gets the value of the uniform @idx in the @args block.
  *
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c
index 38a1b598d3..e8c1012b14 100644
--- a/gsk/gsktransform.c
+++ b/gsk/gsktransform.c
@@ -1371,7 +1371,7 @@ gsk_transform_unref (GskTransform *self)
 /**
  * gsk_transform_print:
  * @self: (nullable): a `GskTransform`
- * @string:  The string to print into
+ * @string: (out caller-allocates):  The string to print into
  *
  * Converts @self into a human-readable string representation suitable
  * for printing.
diff --git a/gtk/css/gtkcsssection.c b/gtk/css/gtkcsssection.c
index 5851cc201c..e8ff5400e7 100644
--- a/gtk/css/gtkcsssection.c
+++ b/gtk/css/gtkcsssection.c
@@ -188,7 +188,7 @@ gtk_css_section_get_end_location (const GtkCssSection *section)
 /**
  * gtk_css_section_print:
  * @section: a section
- * @string: a `GString` to print to
+ * @string: (out caller-allocates): a `GString` to print to
  *
  * Prints the `section` into `string` in a human-readable form.
  *
diff --git a/gtk/gtkshortcutaction.c b/gtk/gtkshortcutaction.c
index 969cdba46d..a843deec75 100644
--- a/gtk/gtkshortcutaction.c
+++ b/gtk/gtkshortcutaction.c
@@ -116,7 +116,7 @@ gtk_shortcut_action_to_string (GtkShortcutAction *self)
 /**
  * gtk_shortcut_action_print:
  * @self: a `GtkShortcutAction`
- * @string: a `GString` to print into
+ * @string: (out caller-allocates): a `GString` to print into
  *
  * Prints the given action into a string for the developer.
  *
diff --git a/gtk/gtkshortcuttrigger.c b/gtk/gtkshortcuttrigger.c
index bd4cfce061..8a70afd1d7 100644
--- a/gtk/gtkshortcuttrigger.c
+++ b/gtk/gtkshortcuttrigger.c
@@ -220,7 +220,7 @@ gtk_shortcut_trigger_to_string (GtkShortcutTrigger *self)
 /**
  * gtk_shortcut_trigger_print:
  * @self: a `GtkShortcutTrigger`
- * @string: a `GString` to print into
+ * @string: (out caller-allocates): a `GString` to print into
  *
  * Prints the given trigger into a string for the developer.
  * This is meant for debugging and logging.


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