summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-12-06 23:00:31 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-12-06 23:00:31 +0000
commitf3507cc8cf4106cd4731c57b32092f5362883bdd (patch)
tree028c81ff5aa62a22f73b2b9c7a7bd13ac373f5bf /pango/pango-context.c
parentb7c74a7787b624bdf1ef6a4f6dba2007317b9265 (diff)
downloadpango-f3507cc8cf4106cd4731c57b32092f5362883bdd.tar.gz
Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used Patch
2006-12-06 Behdad Esfahbod <behdad@gnome.org> Bug 333982 – Fallback to $LANG whenever NULL PangoLanguage is used Patch from LingNing Zhang * docs/pango-sections.txt: * docs/tmpl/utils.sgml: * pango/pango-context.c: * pango/pango-types.h: * pango/pango-utils.c (_pango_get_lc_ctype), (pango_language_get_default): * pango/pango.def: New public function pango_language_get_default(). Note that, this does not make Pango fallback to the default language automatically, but the user can use this function to set the default language of the locale on a context: pango_context_set_language (context, pango_language_get_default());
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index c6814ba8..26c20cdb 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -350,7 +350,9 @@ pango_context_get_font_description (PangoContext *context)
* @context: a #PangoContext
* @language: the new language tag.
*
- * Sets the global language tag for the context.
+ * Sets the global language tag for the context. The default language
+ * for the locale of the running process can be found using
+ * pango_language_get_default().
**/
void
pango_context_set_language (PangoContext *context,