[glib] gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
- Date: Tue, 12 Apr 2011 16:56:54 +0000 (UTC)
commit bf087aabbf3811ccb0abce532122c190673356e5
Author: Colin Walters <walters verbum org>
Date: Tue Apr 12 12:56:33 2011 -0400
gsettings-tool fixes: Add missing _apply(), add unset-recursively to man page
docs/reference/gio/gsettings.xml | 12 ++++++++++++
gio/gsettings-tool.c | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gio/gsettings.xml b/docs/reference/gio/gsettings.xml
index 1d8e381..f55784d 100644
--- a/docs/reference/gio/gsettings.xml
+++ b/docs/reference/gio/gsettings.xml
@@ -51,6 +51,11 @@
</cmdsynopsis>
<cmdsynopsis>
<command>gsettings</command>
+ <arg choice="plain">reset-recursively</arg>
+ <arg choice="plain"><replaceable>SCHEMA</replaceable><arg choice="opt">:<replaceable>PATH</replaceable></arg></arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>gsettings</command>
<arg choice="plain">list-schemas</arg>
</cmdsynopsis>
<cmdsynopsis>
@@ -152,6 +157,13 @@ Resets <replaceable>KEY</replaceable> to its default value.
</varlistentry>
<varlistentry>
+<term><option>reset-recursively</option></term>
+<listitem><para>
+Reset all keys under the given <replaceable>SCHEMA</replaceable>.
+</para></listitem>
+</varlistentry>
+
+<varlistentry>
<term><option>list-schemas</option></term>
<listitem><para>
Lists the installed, non-relocatable schemas.
diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c
index bed72f1..824da5a 100644
--- a/gio/gsettings-tool.c
+++ b/gio/gsettings-tool.c
@@ -401,6 +401,7 @@ gsettings_reset_recursively (GSettings *settings,
g_strfreev (children);
+ g_settings_apply (settings);
g_settings_sync ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]