From 65aca90cf644e9fefe91ee89d358331b369bed01 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 10 Jul 2021 12:21:45 +0200 Subject: [PATCH] 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 | 4 ++-- 7 files changed, 10 insertions(+), 10 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..222dfc87b6 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. @@ -276,7 +276,7 @@ gtk_shortcut_trigger_to_label (GtkShortcutTrigger *self, * gtk_shortcut_trigger_print_label: * @self: a `GtkShortcutTrigger` * @display: `GdkDisplay` to print for - * @string: a `GString` to print into + * @string: (out caller-allocates): a `GString` to print into * * Prints the given trigger into a string. *