[gnome-settings-daemon] a11y-keyboard: Use g_settings_delay() properly



commit b0adec9d535cdfb45503edfdd80ce3dc5ab0d182
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Dec 16 19:41:35 2010 +0000

    a11y-keyboard: Use g_settings_delay() properly
    
    So that just those settings are delayed, and not the application
    of any other ones.

 plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
index da211d5..bfe7b2f 100644
--- a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
@@ -784,7 +784,9 @@ set_gsettings_from_server (GsdA11yKeyboardManager *manager)
                 return;
         }
 
-        settings = manager->priv->settings;
+	/* Create a new one, so that only those settings
+	 * are delayed */
+        settings = g_settings_new (KEYBOARD_A11Y_SCHEMA);
         g_settings_delay (settings);
 
         /*
@@ -885,6 +887,7 @@ set_gsettings_from_server (GsdA11yKeyboardManager *manager)
         XkbFreeKeyboard (desc, XkbAllComponentsMask, True);
 
         g_settings_apply (settings);
+        g_object_unref (settings);
 }
 
 static GdkFilterReturn



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