From 3cb974ee8be182944848b5e64dd4724f118bc8fa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 30 Nov 2009 16:15:19 +0000 Subject: [PATCH] Set the default language on the Pango context When creating the Pango context we should also set the language to be the default Pango language. --- clutter/clutter-main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 4d7cc10b7..c0f140ab1 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -583,6 +583,7 @@ update_pango_context (ClutterBackend *backend, const cairo_font_options_t *font_options; const gchar *font_name; PangoDirection pango_dir; + PangoLanguage *lang; gdouble resolution; /* update the text direction */ @@ -640,6 +641,7 @@ _clutter_context_create_pango_context (ClutterMainContext *self) context = cogl_pango_font_map_create_context (self->font_map); update_pango_context (self->backend, context); + pango_context_set_language (context, pango_language_get_default ()); return context; }