aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-20 15:57:52 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-20 15:57:52 -0500
commitae3ad074ad435bcd5b4df0b32282b1663c57e1de (patch)
tree7ccd145f415dea859d2e271aa2f233e853b2564d /src
parent1f055482724f72a8d18350c6af67d9b8df244019 (diff)
downloadayatana-indicator-datetime-ae3ad074ad435bcd5b4df0b32282b1663c57e1de.tar.gz
ayatana-indicator-datetime-ae3ad074ad435bcd5b4df0b32282b1663c57e1de.tar.bz2
ayatana-indicator-datetime-ae3ad074ad435bcd5b4df0b32282b1663c57e1de.zip
improvements based on feedback from desrt
Diffstat (limited to 'src')
-rw-r--r--src/datetime-prefs-locations.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/datetime-prefs-locations.c b/src/datetime-prefs-locations.c
index cbd7308..fa0cb2a 100644
--- a/src/datetime-prefs-locations.c
+++ b/src/datetime-prefs-locations.c
@@ -366,11 +366,7 @@ save_to_settings (GObject * store, GSettings * conf)
g_settings_set_strv (conf, SETTINGS_LOCATIONS_S, NULL);
}
else {
- GVariant * locations = g_variant_builder_end (&builder);
- const gchar ** strings = g_variant_get_strv (locations, NULL);
- g_settings_set_strv (conf, SETTINGS_LOCATIONS_S, strings);
- g_free (strings);
- g_variant_unref (locations);
+ g_settings_set_value (conf, SETTINGS_LOCATIONS_S, g_variant_builder_end (&builder));
}
}