summaryrefslogtreecommitdiff
path: root/gsettings
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-04-22 20:21:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-04-22 20:22:20 -0400
commita22cb09f2bace2c3c1e3b946a2ee32398ad3dbf8 (patch)
tree715965d699b1b7fde0544869299d30f865b84e6c /gsettings
parent1573fded60055196b5d9fbd068f69a8cc7e2416b (diff)
downloadgconf-a22cb09f2bace2c3c1e3b946a2ee32398ad3dbf8.tar.gz
Add a warning for a common mistake
Give a hint that keys on the left are not supposed to be full paths.
Diffstat (limited to 'gsettings')
-rw-r--r--gsettings/gsettings-data-convert.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gsettings/gsettings-data-convert.c b/gsettings/gsettings-data-convert.c
index a5183364..0164dca6 100644
--- a/gsettings/gsettings-data-convert.c
+++ b/gsettings/gsettings-data-convert.c
@@ -98,6 +98,13 @@ handle_file (const gchar *filename)
for (j = 0; keys[j]; j++)
{
+ if (strchr (keys[j], '/') != 0)
+ {
+ g_printerr ("Key '%s' contains a '/'\n", keys[j]);
+
+ continue;
+ }
+
error = NULL;
if ((gconf_key = g_key_file_get_string (keyfile, groups[i], keys[j], &error)) == NULL)
{