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
This commit is contained in:
Emmanuele Bassi 2014-01-16 12:24:05 +00:00
parent c1c59bd898
commit ed0633468f

View File

@ -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: