summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-27 14:38:09 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-27 14:41:28 +0000
commit3883d19990415d03d247bc6cbf8f344e2160db88 (patch)
tree808e621912b2a941c5c8c2665086b8a1f1ad4d8a /pango/pango-language.c
parentcdfb0e3b46066bcc493228f9a409b60ecb7b31a5 (diff)
downloadpango-3883d19990415d03d247bc6cbf8f344e2160db88.tar.gz
Add a note to pango_language_get_scripts docs
Explain that returned script values are, in fact, from the GUnicodeScript enumeration.
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r--pango/pango-language.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c
index 725559fa..0c195844 100644
--- a/pango/pango-language.c
+++ b/pango/pango-language.c
@@ -638,6 +638,10 @@ pango_language_get_sample_string (PangoLanguage *language)
* The pango_language_includes_script() function uses this function
* internally.
*
+ * Note: while the return value is declared as PangoScript, the
+ * returned values are from the GUnicodeScript enumeration, which
+ * may have more values. Callers need to handle unknown values.
+ *
* Return value: (array length=num_scripts) (nullable): An array of
* #PangoScript values, with the number of entries in the array stored
* in @num_scripts, or %NULL if Pango does not have any information