From f0b48dd07495aa4f364287b0ee94e3633cf52fe5 Mon Sep 17 00:00:00 2001 From: Stephan Arts Date: Tue, 7 Oct 2008 14:57:15 +0000 Subject: Add -R option (recursive) for use with --reset (Old svn revision: 28087) --- xfconf-query/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xfconf-query') diff --git a/xfconf-query/main.c b/xfconf-query/main.c index 8b09395..ec01156 100644 --- a/xfconf-query/main.c +++ b/xfconf-query/main.c @@ -61,6 +61,7 @@ static gboolean list = FALSE; static gboolean verbose = FALSE; static gboolean create = FALSE; static gboolean reset = FALSE; +static gboolean recursive = FALSE; static gchar *channel_name = NULL; static gchar *property_name = NULL; static gchar **set_value = NULL; @@ -171,6 +172,10 @@ static GOptionEntry entries[] = N_("Reset property"), NULL }, + { "recursive", 'R', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &recursive, + N_("Recursive (use with -r)"), + NULL + }, { "export", 'x', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &export_file, N_("Export channel"), NULL, @@ -264,7 +269,7 @@ main(int argc, char **argv) /** Reset property */ if (reset) { - xfconf_channel_reset_property(channel, property_name, FALSE); + xfconf_channel_reset_property(channel, property_name, recursive); } /** Read value */ else if(set_value == NULL || set_value[0] == NULL) -- cgit v1.2.1