[gnome-settings-daemon/gnome-3-12] xsettings: Honor changes to enable-animations



commit 720658f32bf435548334242a415b072efcc4a8be
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 16 17:06:21 2014 +0200

    xsettings: Honor changes to enable-animations
    
    This got lost when force-disable-animations was added.

 plugins/xsettings/gsd-xsettings-manager.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index 739c269..ac7546d 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -1103,6 +1103,14 @@ force_disable_animation_changed (GObject    *gobject,
 }
 
 static void
+enable_animations_changed_cb (GSettings             *settings,
+                              gchar                 *key,
+                              GnomeXSettingsManager *manager)
+{
+        force_disable_animation_changed (G_OBJECT (manager->priv->remote_display), NULL, manager);
+}
+
+static void
 on_rr_screen_changed (GnomeRRScreen         *screen,
                       GnomeXSettingsManager *manager)
 {
@@ -1169,6 +1177,9 @@ gnome_xsettings_manager_start (GnomeXSettingsManager *manager,
         g_hash_table_insert (manager->priv->settings,
                              PRIVACY_SETTINGS_SCHEMA, g_settings_new (PRIVACY_SETTINGS_SCHEMA));
 
+        g_signal_connect (G_OBJECT (g_hash_table_lookup (manager->priv->settings, 
INTERFACE_SETTINGS_SCHEMA)), "changed::enable-animations",
+                          G_CALLBACK (enable_animations_changed_cb), manager);
+
         for (i = 0; i < G_N_ELEMENTS (fixed_entries); i++) {
                 FixedEntry *fixed = &fixed_entries[i];
                 (* fixed->func) (manager, fixed);


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