diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-06-26 13:51:06 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-06-26 13:51:06 +0100 |
commit | 26fb0960953069006e781cf59a005bfdfa5d6d5b (patch) | |
tree | a8f76497a02a2953470284321615de68d4efcc76 /clutter/clutter-settings.c | |
parent | 98613382a4b897012e78fff60b0cb7cf7ef97ad2 (diff) | |
download | clutter-26fb0960953069006e781cf59a005bfdfa5d6d5b.tar.gz |
settings: Emit Backend::font-changed
When the :font-name property changes, to maintain the invariant.
Diffstat (limited to 'clutter/clutter-settings.c')
-rw-r--r-- | clutter/clutter-settings.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clutter/clutter-settings.c b/clutter/clutter-settings.c index 2a6aeed54..dbc5eaec3 100644 --- a/clutter/clutter-settings.c +++ b/clutter/clutter-settings.c @@ -151,6 +151,14 @@ settings_update_font_options (ClutterSettings *self) } 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) { CLUTTER_NOTE (BACKEND, "New resolution: %.2f", self->resolution); @@ -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: |