summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-19 07:39:39 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-19 07:39:39 -0400
commit75eee838a91bad404d211b002f26e9af3033f0d5 (patch)
tree183f9b72b96d5c8ee72979220312f977234c9016 /pango/pango-language.c
parent3940a1714e84b076d04d4638c88df3dba7d8014e (diff)
downloadpango-75eee838a91bad404d211b002f26e9af3033f0d5.tar.gz
introspection: Stop using allow-none
The allow-none annotation has been deprecated for a long time already. Instead use optional and nullable everywhere.
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r--pango/pango-language.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c
index 2f79acec..7ab90fe8 100644
--- a/pango/pango-language.c
+++ b/pango/pango-language.c
@@ -306,7 +306,7 @@ pango_language_get_default (void)
/**
* pango_language_from_string:
- * @language: (allow-none): a string representing a language tag, or %NULL
+ * @language: (nullable): a string representing a language tag, or %NULL
*
* Convert a language tag to a `PangoLanguage`.
*
@@ -618,8 +618,8 @@ pango_language_get_sample_string (PangoLanguage *language)
/**
* pango_language_get_scripts:
- * @language: (allow-none): a `PangoLanguage`, or %NULL
- * @num_scripts: (out caller-allocates) (allow-none): location to
+ * @language: (nullable): a `PangoLanguage`, or %NULL
+ * @num_scripts: (out caller-allocates) (optional): location to
* return number of scripts, or %NULL
*
* Determines the scripts used to to write @language.