summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/renderdemo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 17b50612..d94053f7 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -274,7 +274,7 @@ do_output (PangoContext *context,
set_transform (context, transform_cb, cb_context, cb_data, NULL);
- pango_context_set_language (context, pango_language_from_string ("en_US"));
+ pango_context_set_language (context, pango_language_get_default ());
pango_context_set_base_dir (context,
opt_rtl ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR);