From dd3fd682f69da2a4f440dff63eeea241777b84a1 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Mon, 22 May 2023 01:19:17 +0200 Subject: [PATCH] libgimp, pdb: Fix enums_get_type_names annotations Annotate the array length --- libgimp/gimpenums.c.tail | 2 +- pdb/enumcode.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libgimp/gimpenums.c.tail b/libgimp/gimpenums.c.tail index 13b6a911c9..fd937076a9 100644 --- a/libgimp/gimpenums.c.tail +++ b/libgimp/gimpenums.c.tail @@ -188,7 +188,7 @@ gimp_enums_init (void) * This function gives access to the list of enums registered by libgimp. * The returned array is static and must not be modified. * - * Returns: (transfer none): an array with type names + * Returns: (array length=n_type_names) (transfer none): an array with type names * * Since: 2.2 **/ diff --git a/pdb/enumcode.pl b/pdb/enumcode.pl index c3497ad292..91c5ce29f1 100755 --- a/pdb/enumcode.pl +++ b/pdb/enumcode.pl @@ -241,7 +241,7 @@ gimp_enums_init (void) * This function gives access to the list of enums registered by libgimp. * The returned array is static and must not be modified. * - * Returns: (transfer none): an array with type names + * Returns: (array length=n_type_names) (transfer none): an array with type names * * Since: 2.2 **/