From 57513d21f1925311e3e9230b4bc78e09910dc1fa Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Tue, 12 Jun 2012 15:41:39 -0700 Subject: introspection: assorted annotation fixes ported from Vala https://bugzilla.gnome.org/show_bug.cgi?id=677778 --- clutter/clutter-binding-pool.c | 3 ++- clutter/clutter-color.c | 6 +++--- clutter/clutter-main.c | 4 ++-- clutter/clutter-shader-types.c | 22 +++++++++++----------- clutter/clutter-stage.c | 2 +- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/clutter/clutter-binding-pool.c b/clutter/clutter-binding-pool.c index 76a4669bf..6bce92334 100644 --- a/clutter/clutter-binding-pool.c +++ b/clutter/clutter-binding-pool.c @@ -452,7 +452,8 @@ clutter_binding_pool_find (const gchar *name) * @action_name: the name of the action * @key_val: key symbol * @modifiers: bitmask of modifiers - * @callback: function to be called when the action is activated + * @callback: (type Clutter.BindingActionFunc): function to be called + * when the action is activated * @data: data to be passed to @callback * @notify: function to be called when the action is removed * from the pool diff --git a/clutter/clutter-color.c b/clutter/clutter-color.c index cef0109a4..1fb564c07 100644 --- a/clutter/clutter-color.c +++ b/clutter/clutter-color.c @@ -828,8 +828,8 @@ clutter_color_to_string (const ClutterColor *color) /** * clutter_color_equal: - * @v1: a #ClutterColor - * @v2: a #ClutterColor + * @v1: (type Clutter.Color): a #ClutterColor + * @v2: (type Clutter.Color): a #ClutterColor * * Compares two #ClutterColors and checks if they are the same. * @@ -863,7 +863,7 @@ clutter_color_equal (gconstpointer v1, /** * clutter_color_hash: - * @v: a #ClutterColor + * @v: (type Clutter.Color): a #ClutterColor * * Converts a #ClutterColor to a hash value. * diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 573a25b0b..7b86fdbd5 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -1889,8 +1889,8 @@ clutter_get_option_group_without_init (void) * @parameter_string: (allow-none): a string which is displayed in the * first line of output, after * programname [OPTION...] - * @entries: (allow-none): a %NULL terminated array of #GOptionEntrys - * describing the options of your program + * @entries: (array) (allow-none): a %NULL terminated array of + * #GOptionEntrys describing the options of your program * @translation_domain: (allow-none): a translation domain to use for * translating the output for the options in * @entries with gettext(), or %NULL diff --git a/clutter/clutter-shader-types.c b/clutter/clutter-shader-types.c index 85e1b144a..5b9fcdc1c 100644 --- a/clutter/clutter-shader-types.c +++ b/clutter/clutter-shader-types.c @@ -383,7 +383,7 @@ clutter_shader_matrix_get_type (void) * clutter_value_set_shader_float: * @value: a #GValue * @size: number of floating point values in @floats - * @floats: an array of floating point values + * @floats: (array length=size): an array of floating point values * * Sets @floats as the contents of @value. The passed #GValue * must have been initialized using %CLUTTER_TYPE_SHADER_FLOAT. @@ -413,7 +413,7 @@ clutter_value_set_shader_float (GValue *value, * clutter_value_set_shader_int: * @value: a #GValue * @size: number of integer values in @ints - * @ints: an array of integer values + * @ints: (array length=size): an array of integer values * * Sets @ints as the contents of @value. The passed #GValue * must have been initialized using %CLUTTER_TYPE_SHADER_INT. @@ -443,7 +443,7 @@ clutter_value_set_shader_int (GValue *value, * clutter_value_set_shader_matrix: * @value: a #GValue * @size: number of floating point values in @floats - * @matrix: a matrix of floating point values + * @matrix: (array length=size): a matrix of floating point values * * Sets @matrix as the contents of @value. The passed #GValue * must have been initialized using %CLUTTER_TYPE_SHADER_MATRIX. @@ -472,16 +472,16 @@ clutter_value_set_shader_matrix (GValue *value, /** * clutter_value_get_shader_float: * @value: a #GValue - * @length: return location for the number of returned floating + * @length: (out): return location for the number of returned floating * point values, or %NULL * * Retrieves the list of floating point values stored inside * the passed #GValue. @value must have been initialized with * %CLUTTER_TYPE_SHADER_FLOAT. * - * Return value: the pointer to a list of floating point values. - * The returned value is owned by the #GValue and should never - * be modified or freed. + * Return value: (array length=length): the pointer to a list of + * floating point values. The returned value is owned by the + * #GValue and should never be modified or freed. * * Since: 0.8 */ @@ -504,16 +504,16 @@ clutter_value_get_shader_float (const GValue *value, /** * clutter_value_get_shader_int: * @value: a #GValue - * @length: return location for the number of returned integer + * @length: (out): return location for the number of returned integer * values, or %NULL * * Retrieves the list of integer values stored inside the passed * #GValue. @value must have been initialized with * %CLUTTER_TYPE_SHADER_INT. * - * Return value: the pointer to a list of integer values. - * The returned value is owned by the #GValue and should never - * be modified or freed. + * Return value: (array length=length): the pointer to a list of + * integer values. The returned value is owned by the #GValue and + * should never be modified or freed. * * Since: 0.8 */ diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 0a936950d..e40b0c959 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -2826,7 +2826,7 @@ clutter_stage_hide_cursor (ClutterStage *stage) * The alpha data contained in the returned buffer is driver-dependent, * and not guaranteed to hold any sensible value. * - * Return value: (array): a pointer to newly allocated memory with the buffer + * Return value: (transfer full) (array): a pointer to newly allocated memory with the buffer * or %NULL if the read failed. Use g_free() on the returned data * to release the resources it has allocated. */ -- cgit v1.2.1