diff options
author | Stephan Arts <stephan@xfce.org> | 2008-10-07 14:57:15 +0000 |
---|---|---|
committer | Stephan Arts <stephan@xfce.org> | 2008-10-07 14:57:15 +0000 |
commit | f0b48dd07495aa4f364287b0ee94e3633cf52fe5 (patch) | |
tree | a1abb388f097bdbef85a18c8758077f3c9029175 /xfconf-query/main.c | |
parent | 8503fec0ce132537be502f6ba0c6a21e707b4f33 (diff) | |
download | xfconf-f0b48dd07495aa4f364287b0ee94e3633cf52fe5.tar.gz |
Add -R option (recursive) for use with --reset
(Old svn revision: 28087)
Diffstat (limited to 'xfconf-query/main.c')
-rw-r--r-- | xfconf-query/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) |