[dconf] implement get_writable in the GSettingsBackend



commit ebb181dcc06e7c19ad3fd5b5feb1d1575c52d8ad
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Sep 30 13:52:20 2009 -0400

    implement get_writable in the GSettingsBackend

 gio/dconfstorage.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gio/dconfstorage.c b/gio/dconfstorage.c
index 7464712..32335ca 100644
--- a/gio/dconfstorage.c
+++ b/gio/dconfstorage.c
@@ -186,7 +186,15 @@ static gboolean
 dconf_storage_get_writable (GSettingsBackend *backend,
                             const gchar      *name)
 {
-  return TRUE;
+  DConfStorage *storage = DCONF_STORAGE (backend);
+  gboolean writable;
+  gchar *full;
+
+  full = g_strdup_printf ("%s%s", storage->base, name);
+  writable = dconf_get_writable (full);
+  g_free (full);
+
+  return writable;
 }
 
 static void



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