[glib/new-gsettings] g_settings_get_child
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] g_settings_get_child
- Date: Wed, 14 Apr 2010 23:46:18 +0000 (UTC)
commit 7eecee26f8324e5b040074f1f163fffd025068c7
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Apr 14 19:45:05 2010 -0400
g_settings_get_child
gio/gsettings.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 39cb16d..c2405a0 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -741,6 +741,20 @@ g_settings_is_writable (GSettings *settings,
return writable;
}
+GSettings *
+g_settings_get_child (GSettings *settings,
+ const gchar *name)
+{
+ gchar *child_schema;
+ GSettings *child;
+
+ child_schema = g_strconcat (settings->priv->schema_name, ".", name, NULL);
+ child = g_object_new (G_TYPE_SETTINGS, "schema", child_schema, NULL);
+ g_free (child_schema);
+
+ return child;
+}
+
/**
* g_settings_new:
* @schema: the name of the schema
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]