From 75eee838a91bad404d211b002f26e9af3033f0d5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 May 2021 07:39:39 -0400 Subject: introspection: Stop using allow-none The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere. --- pango/pango-utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pango/pango-utils.c') diff --git a/pango/pango-utils.c b/pango/pango-utils.c index 5283da35..56d610c5 100644 --- a/pango/pango-utils.c +++ b/pango/pango-utils.c @@ -673,10 +673,10 @@ parse_int (const char *word, /** * pango_parse_enum: * @type: enum type to parse, eg. %PANGO_TYPE_ELLIPSIZE_MODE. - * @str: (allow-none): string to parse. May be %NULL. - * @value: (out) (allow-none): integer to store the result in, or %NULL. + * @str: (nullable): string to parse. May be %NULL. + * @value: (out) (optional): integer to store the result in, or %NULL. * @warn: if %TRUE, issue a g_warning() on bad input. - * @possible_values: (out) (allow-none): place to store list of possible values on failure, or %NULL. + * @possible_values: (out) (optional): place to store list of possible values on failure, or %NULL. * * Parses an enum type and stores the result in @value. * @@ -1016,8 +1016,8 @@ pango_units_to_double (int i) /** * pango_extents_to_pixels: - * @inclusive: (allow-none): rectangle to round to pixels inclusively, or %NULL. - * @nearest: (allow-none): rectangle to round to nearest pixels, or %NULL. + * @inclusive: (nullable): rectangle to round to pixels inclusively, or %NULL. + * @nearest: (nullable): rectangle to round to nearest pixels, or %NULL. * * Converts extents from Pango units to device units. * -- cgit v1.2.1