From 80d4b11e13cfbbb02025e542721dffcc29050717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 17 Nov 2022 22:43:29 +0200 Subject: Fix some g-i annotations related to arrays --- pango/pango-language.c | 5 ++--- pango/pangofc-font.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pango/pango-language.c b/pango/pango-language.c index b963ef13..410e6f98 100644 --- a/pango/pango-language.c +++ b/pango/pango-language.c @@ -617,8 +617,7 @@ pango_language_get_sample_string (PangoLanguage *language) /** * pango_language_get_scripts: * @language: (nullable): a `PangoLanguage` - * @num_scripts: (out caller-allocates) (optional): location to - * return number of scripts + * @num_scripts: (out) (optional): location to return number of scripts * * Determines the scripts used to to write @language. * @@ -853,7 +852,7 @@ out: * you should first try the default language, followed by the * languages returned by this function. * - * Returns: (transfer none) (nullable): a %NULL-terminated array + * Returns: (transfer none) (nullable) (array zero-terminated=1): a %NULL-terminated array * of `PangoLanguage`* * * Since: 1.48 diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 053e93cd..d0077b34 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -1091,8 +1091,8 @@ done: * The returned array is only valid as long as the font * and its fontmap are valid. * - * Returns: (transfer none) (nullable): a %NULL-terminated - * array of `PangoLanguage`* + * Returns: (transfer none) (nullable) (array zero-terminated=1): a + * %NULL-terminated array of `PangoLanguage`* * * Since: 1.48 * Deprecated: 1.50: Use pango_font_get_language() -- cgit v1.2.1