summaryrefslogtreecommitdiff
path: root/pango/pango-types.h
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-types.h
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-types.h')
-rw-r--r--pango/pango-types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-types.h b/pango/pango-types.h
index 2e8b5a83..221bc64b 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -70,9 +70,11 @@ typedef struct _PangoLanguage PangoLanguage;
GType pango_language_get_type (void);
PangoLanguage *pango_language_from_string (const char *language);
+
#define pango_language_to_string(language) ((const char *)language)
G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language);
+PangoLanguage *pango_language_get_default (void);
gboolean pango_language_matches (PangoLanguage *language,
const char *range_list);