summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-12-06 23:18:04 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-12-06 23:18:04 +0000
commit5b6f118ba4b87c2d9ba834620b11c3f44119dce1 (patch)
tree90ce4f23ba2d470633b7c038cc9c0b40b875a0ce /pango
parentf3507cc8cf4106cd4731c57b32092f5362883bdd (diff)
downloadpango-5b6f118ba4b87c2d9ba834620b11c3f44119dce1.tar.gz
Set context language to pango_language_get_default() instead of hardcoding
2006-12-06 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (do_output): Set context language to pango_language_get_default() instead of hardcoding "en-US". * pango/pango-utils.c (pango_language_get_default): Improve docs.
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-utils.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index ea480840..d0acc836 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -1051,9 +1051,12 @@ _pango_get_lc_ctype (void)
/**
* pango_language_get_default:
*
- * Returns the #PangoLanguage for the current locale of the running
- * process. Note that this can change over the life of an
- * application.
+ * Returns the #PangoLanguage for the current locale of the process.
+ * Note that this can change over the life of an application.
+ *
+ * Your application should call <literal>setlocale (LC_ALL, "");</literal>
+ * for the user settings to take effect. Gtk+ does this in its initialization
+ * functions. See <literal>man setlocale</literal> for details.
*
* Return value: the default language as a #PangoLanguage, must not be
* freed.