main: Don't update the PangoContext in clutter_set_font_flags
clutter_set_font_flags already calls clutter_backend_set_font_options, which emits a signal which our PangoContext listens to, so this is just duplicate and unneeded code. https://bugzilla.gnome.org/show_bug.cgi?id=739050
This commit is contained in:
parent
7764fd2079
commit
14d28e7908
@ -3276,7 +3276,6 @@ clutter_clear_glyph_cache (void)
|
||||
void
|
||||
clutter_set_font_flags (ClutterFontFlags flags)
|
||||
{
|
||||
ClutterMainContext *context = _clutter_context_get_default ();
|
||||
CoglPangoFontMap *font_map;
|
||||
ClutterFontFlags old_flags, changed_flags;
|
||||
const cairo_font_options_t *font_options;
|
||||
@ -3326,10 +3325,6 @@ clutter_set_font_flags (ClutterFontFlags flags)
|
||||
clutter_backend_set_font_options (backend, new_font_options);
|
||||
|
||||
cairo_font_options_destroy (new_font_options);
|
||||
|
||||
/* update the default pango context, if any */
|
||||
if (context->pango_context != NULL)
|
||||
update_pango_context (backend, context->pango_context);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user