From 5b39b87199d986d5bea2063bd126f4e7c8885a72 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Sep 2011 10:25:03 -0400 Subject: [PATCH] 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 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shell-a11y.c b/src/shell-a11y.c index c9721ea05..b6f1ccb84 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;