[glib/new-gsettings] prepend path to sets
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] prepend path to sets
- Date: Wed, 14 Apr 2010 22:10:48 +0000 (UTC)
commit b2e7035181d17425aea2d375c37a4e8748174e2a
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Apr 14 18:10:38 2010 -0400
prepend path to sets
gio/gsettings.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 297cae2..39cb16d 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -634,6 +634,7 @@ g_settings_set_value (GSettings *settings,
{
gboolean correct_type;
GVariant *sval;
+ gchar *path;
sval = g_settings_schema_get_value (settings->priv->schema, key, NULL);
correct_type = g_variant_is_of_type (value, g_variant_get_type (sval));
@@ -641,7 +642,9 @@ g_settings_set_value (GSettings *settings,
g_return_if_fail (correct_type);
- g_settings_backend_write (settings->priv->backend, key, value, NULL);
+ path = g_strconcat (settings->priv->path, key, NULL);
+ g_settings_backend_write (settings->priv->backend, path, value, NULL);
+ g_free (path);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]