settings: Emit Backend::font-changed

When the :font-name property changes, to maintain the invariant.
This commit is contained in:
Emmanuele Bassi 2010-06-26 13:51:06 +01:00
parent 98613382a4
commit 26fb096095

View File

@ -150,6 +150,14 @@ settings_update_font_options (ClutterSettings *self)
cairo_font_options_destroy (options);
}
static void
settings_update_font_name (ClutterSettings *self)
{
CLUTTER_NOTE (BACKEND, "New font-name: %s", self->font_name);
g_signal_emit_by_name (self->backend, "font-changed");
}
static void
settings_update_resolution (ClutterSettings *self)
{
@ -195,7 +203,7 @@ clutter_settings_set_property (GObject *gobject,
case PROP_FONT_NAME:
g_free (self->font_name);
self->font_name = g_value_dup_string (value);
settings_update_font_options (self);
settings_update_font_name (self);
break;
case PROP_FONT_ANTIALIAS: