[clutter/clutter-1.18] settings: Remove explicit stage scaling factor update



commit ed0633468f43c8821d24cd4a24c3cbab6d6840d3
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jan 16 12:24:05 2014 +0000

    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 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/clutter/clutter-settings.c b/clutter/clutter-settings.c
index 9314206..2c06f8a 100644
--- a/clutter/clutter-settings.c
+++ b/clutter/clutter-settings.c
@@ -263,22 +263,6 @@ settings_update_fontmap (ClutterSettings *self,
 }
 
 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)
 {
   ClutterSettings *self = CLUTTER_SETTINGS (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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]