From ed0633468f43c8821d24cd4a24c3cbab6d6840d3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 16 Jan 2014 12:24:05 +0000 Subject: [PATCH] settings: Remove explicit stage scaling factor update We can rely on the window-scaling-factor property notification instead. https://bugzilla.gnome.org/show_bug.cgi?id=705915 --- clutter/clutter-settings.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/clutter/clutter-settings.c b/clutter/clutter-settings.c index 9314206c7..2c06f8a10 100644 --- a/clutter/clutter-settings.c +++ b/clutter/clutter-settings.c @@ -262,22 +262,6 @@ settings_update_fontmap (ClutterSettings *self, #endif /* HAVE_PANGO_FT2 */ } -static void -settings_update_window_scale (ClutterSettings *self) -{ - ClutterStageManager *manager; - const GSList *stages, *l; - - manager = clutter_stage_manager_get_default (); - stages = clutter_stage_manager_peek_stages (manager); - for (l = stages; l != NULL; l = l->next) - { - ClutterStage *stage = l->data; - - _clutter_stage_set_scale_factor (stage, self->window_scaling_factor); - } -} - static void clutter_settings_finalize (GObject *gobject) { @@ -363,10 +347,7 @@ clutter_settings_set_property (GObject *gobject, case PROP_WINDOW_SCALING_FACTOR: if (!self->fixed_scaling_factor) - { - self->window_scaling_factor = g_value_get_int (value); - settings_update_window_scale (self); - } + self->window_scaling_factor = g_value_get_int (value); break; case PROP_UNSCALED_FONT_DPI: