diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-08-27 23:43:38 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-08-28 00:05:19 -0400 |
commit | 4105e20d799a80f9c0c2befdef8f458ee11654a6 (patch) | |
tree | e98bb1e985584a28267af6e892471c3617053665 /pango/pango-context.c | |
parent | 26bbf750ab0754c113722e87942174cf2953dad4 (diff) | |
download | pango-4105e20d799a80f9c0c2befdef8f458ee11654a6.tar.gz |
More churn
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r-- | pango/pango-context.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c index 97cb2786..2a100e94 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -590,7 +590,7 @@ get_shaper_font_cache (PangoFontset *fontset) { ShaperFontCache *cache; - static GQuark cache_quark = 0; + static GQuark cache_quark = 0; /* MT-safe */ if (G_UNLIKELY (!cache_quark)) cache_quark = g_quark_from_static_string ("pango-shaper-font-cache"); @@ -1275,14 +1275,13 @@ compute_derived_language (PangoLanguage *lang, static PangoMap * get_lang_map (PangoLanguage *lang) { - static guint engine_type_id = 0; - static guint render_type_id = 0; + static guint engine_type_id = 0; /* MT-safe */ + static guint render_type_id = 0; /* MT-safe */ if (engine_type_id == 0) - { - engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_LANG); - render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_NONE); - } + engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_LANG); + if (render_type_id == 0) + render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_NONE); return pango_find_map (lang, engine_type_id, render_type_id); } |