[glib] g_settings_get_child(): inherit backend



commit c7636ce64b8c4bf89fe75e9431d7d583a1573424
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Dec 21 23:13:57 2013 -0500

    g_settings_get_child(): inherit backend
    
    Part of the purpose of g_settings_get_child() was that it could be used
    after you delay() a GSettings object, and then apply() all of the
    settings together.  In order for that to work, we need to share the
    backend.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720891

 gio/gsettings.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 4a13443..0cc69a0 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -2215,6 +2215,7 @@ g_settings_get_child (GSettings   *settings,
 
   child_path = g_strconcat (settings->priv->path, child_name, NULL);
   child = g_object_new (G_TYPE_SETTINGS,
+                        "backend", settings->priv->backend,
                         "schema-id", child_schema,
                         "path", child_path,
                         NULL);


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