[Xfce4-commits] [xfce/xfce4-settings] 01/02: Update the settings editor to match xfconf
noreply at xfce.org
noreply at xfce.org
Sun Jul 27 16:06:43 CEST 2014
This is an automated email from the git hooks/post-receive script.
jannis pushed a commit to branch master
in repository xfce/xfce4-settings.
commit cd005053dbc63c788b419758ec3a06b083205b0c
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sun Jul 27 15:54:44 2014 +0300
Update the settings editor to match xfconf
Xfconf now accepts additional characters for a channel's property
name, this patch extends that support to the settings editor.
---
xfce4-settings-editor/xfce-settings-prop-dialog.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/xfce4-settings-editor/xfce-settings-prop-dialog.c b/xfce4-settings-editor/xfce-settings-prop-dialog.c
index c69e423..093e5f2 100644
--- a/xfce4-settings-editor/xfce-settings-prop-dialog.c
+++ b/xfce4-settings-editor/xfce-settings-prop-dialog.c
@@ -402,16 +402,18 @@ xfconf_property_is_valid (const gchar *property,
{
if (!(*p >= 'A' && *p <= 'Z') && !(*p >= 'a' && *p <= 'z')
&& !(*p >= '0' && *p <= '9')
- && *p != '_' && *p != '-' && *p != '/'
- && !(*p == '<' || *p == '>'))
+ && *p != '_' && *p != '-' && *p != '/' && *p != '{' && *p != '}'
+ && !(*p == '<' || *p == '>') && *p != '|' && *p != ','
+ && *p != '[' && *p != ']' && *p != '.' && *p != ':')
{
if (error != NULL)
{
g_set_error (error, XFCONF_ERROR,
XFCONF_ERROR_INVALID_PROPERTY,
_("Property names can only include the ASCII "
- "characters A-Z, a-z, 0-9, '_', '-', '<' "
- "and '>', as well as '/' as a separator"));
+ "characters A-Z, a-z, 0-9, '_', '-', ':', '.', "
+ "',', '[', ']', '{', '}', '<' and '>', as well "
+ "as '/' as a separator"));
}
return FALSE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list