From a22cb09f2bace2c3c1e3b946a2ee32398ad3dbf8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 Apr 2010 20:21:49 -0400 Subject: Add a warning for a common mistake Give a hint that keys on the left are not supposed to be full paths. --- gsettings/gsettings-data-convert.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gsettings') 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) { -- cgit v1.2.1