[gnome-shell] Fix up a11y settings handling



commit 5b39b87199d986d5bea2063bd126f4e7c8885a72
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 8 10:25:03 2011 -0400

    Fix up a11y settings handling
    
    Somebody changed the type of the atk-bridge-location key
    from s to ay. Without telling affected parties :-(
    
    https://bugzilla.gnome.org/show_bug.cgi?id=658562

 src/shell-a11y.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-a11y.c b/src/shell-a11y.c
index c9721ea..b6f1ccb 100644
--- a/src/shell-a11y.c
+++ b/src/shell-a11y.c
@@ -50,6 +50,7 @@ static char*
 get_atk_bridge_path (void)
 {
   GSettings *atspi_settings = NULL;
+  GVariant *variant = NULL;
   char *value = NULL;
   const char * const *schemas = NULL;
   gboolean found = FALSE;
@@ -74,8 +75,9 @@ get_atk_bridge_path (void)
     }
 
   atspi_settings = g_settings_new (AT_SPI_SCHEMA);
-  value = g_settings_get_string (atspi_settings, ATK_BRIDGE_LOCATION_KEY);
-
+  variant = g_settings_get_value (atspi_settings, ATK_BRIDGE_LOCATION_KEY);
+  value = g_variant_dup_bytestring (variant, NULL);
+  g_variant_unref (variant);
   g_object_unref (atspi_settings);
 
   return value;



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