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



commit 61a57c3506577bfe34a2b368dc3cc082414aad21
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 3ca1085..4348623 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -1105,6 +1105,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)
 {
@@ -1171,6 +1179,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]