[at-spi2-core] Call g_settings_sync after updating IsEnabled



commit 1f20124c27ffa35a334483ac9ee4c928cdbe374f
Author: Mike Gorse <mgorse linux-l2tz site>
Date:   Sat Jan 21 12:26:51 2012 -0600

    Call g_settings_sync after updating IsEnabled
    
    Ensure that the GSettings key is updated immediately upon receiving a
    D-Bus message to set the property.

 bus/at-spi-bus-launcher.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 290ccbd..a4c8411 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -266,8 +266,11 @@ handle_a11y_enabled_change (A11yBusLauncher *app, gboolean enabled,
   app->a11y_enabled = enabled;
 
   if (notify_gsettings && app->desktop_schema)
-    g_settings_set_boolean (app->desktop_schema, "toolkit-accessibility",
-                            enabled);
+    {
+      g_settings_set_boolean (app->desktop_schema, "toolkit-accessibility",
+                              enabled);
+      g_settings_sync ();
+    }
 
   builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY);
   invalidated_builder = g_variant_builder_new (G_VARIANT_TYPE ("as"));



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