diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-23 01:07:33 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-23 01:07:33 +0000 |
commit | 8759c47c758e5ee31d96fcf4936cf900f9a9fb08 (patch) | |
tree | 42e690fdb37c19415cc47f72f072ca1277fef498 /pango/pango-ot-tag.c | |
parent | bd30ee7a7a43ee687bf1881e2f4d9f3461954b7d (diff) | |
download | pango-8759c47c758e5ee31d96fcf4936cf900f9a9fb08.tar.gz |
Bug 440603 – Minor ABI change
2007-05-22 Behdad Esfahbod <behdad@gnome.org>
Bug 440603 – Minor ABI change
* pango/pango-language.c (pango_language_includes_script):
* pango/pango-ot-tag.c (pango_ot_tag_from_language):
Accept language == NULL as legitimate input.
svn path=/trunk/; revision=2315
Diffstat (limited to 'pango/pango-ot-tag.c')
-rw-r--r-- | pango/pango-ot-tag.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pango/pango-ot-tag.c b/pango/pango-ot-tag.c index eb6a19d3..74038b7b 100644 --- a/pango/pango-ot-tag.c +++ b/pango/pango-ot-tag.c @@ -99,7 +99,7 @@ static const char ot_scripts[][4] = { /** * pango_ot_tag_from_script: - * @script: A #PangoScript. + * @script: A #PangoScript * * Finds the OpenType script tag corresponding to @script. * @@ -127,7 +127,7 @@ pango_ot_tag_from_script (PangoScript script) /** * pango_ot_tag_to_script: - * @script_tag: A #PangoOTTag OpenType script tag. + * @script_tag: A #PangoOTTag OpenType script tag * * Finds the #PangoScript corresponding to @script_tag. * @@ -396,12 +396,13 @@ lang_compare_first_component (gconstpointer pa, /** * pango_ot_tag_from_language: - * @language: A #PangoLanguage. + * @language: A #PangoLanguage, or %NULL * * Finds the OpenType language-system tag best describing @language. * * Return value: #PangoOTTag best matching @language or - * %PANGO_OT_TAG_DEFAULT_LANGUAGE if none found. + * %PANGO_OT_TAG_DEFAULT_LANGUAGE if none found or if @language + * is %NULL. * * Since: 1.18 **/ @@ -411,7 +412,8 @@ pango_ot_tag_from_language (PangoLanguage *language) const char *lang_str; LangTag *lang_tag; - g_return_val_if_fail (language != NULL, PANGO_OT_TAG_DEFAULT_LANGUAGE); + if (language == NULL) + return PANGO_OT_TAG_DEFAULT_LANGUAGE; lang_str = pango_language_to_string (language); @@ -455,7 +457,7 @@ pango_ot_tag_from_language (PangoLanguage *language) /** * pango_ot_tag_to_language: - * @language_tag: A #PangoOTTag OpenType language-system tag. + * @language_tag: A #PangoOTTag OpenType language-system tag * * Finds a #PangoLanguage corresponding to @language_tag. * |