[glib/new-gsettings] oops.
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] oops.
- Date: Thu, 15 Apr 2010 01:37:54 +0000 (UTC)
commit f23ef4c472019eb6df667988fc79c86ef981e9e0
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Apr 14 21:33:59 2010 -0400
oops.
gio/gsettings.c | 2 +-
gio/tests/org.gtk.test.gschema | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index b6d577e..2b482b1 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -760,7 +760,7 @@ g_settings_get_child (GSettings *settings,
child_path = g_strconcat (settings->priv->path, child_name, NULL);
child = g_object_new (G_TYPE_SETTINGS,
- "schema", child_schema,
+ "schema", g_variant_get_string (child_schema, NULL),
"path", child_path,
NULL);
g_variant_unref (child_schema);
diff --git a/gio/tests/org.gtk.test.gschema b/gio/tests/org.gtk.test.gschema
index ebf7a13..d0a5a2a 100644
--- a/gio/tests/org.gtk.test.gschema
+++ b/gio/tests/org.gtk.test.gschema
@@ -10,6 +10,9 @@
<key name="farewell" type="s">
<default l10n="true">"So long"</default>
</key>
+
+ <child name='basic-types' schema='org.gtk.test.basic-types'/>
+ <child name='complex-types' schema='org.gtk.test.complex-types'/>
</schema>
<schema id="org.gtk.test.basic-types" path="/tests/basic_types/" gettext-domain="test">
<key name="test_boolean" type="b">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]