summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-layout.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mate-panel/panel-layout.c b/mate-panel/panel-layout.c
index ee61c713..ab051e96 100644
--- a/mate-panel/panel-layout.c
+++ b/mate-panel/panel-layout.c
@@ -161,10 +161,14 @@ panel_layout_append_group_helper (GKeyFile *keyfile,
dir = "toplevels";
type = PANEL_GSETTINGS_TOPLEVELS;
}
- if (g_strcmp0 (id_list_key, PANEL_OBJECT_ID_LIST_KEY) == 0) {
+ else if (g_strcmp0 (id_list_key, PANEL_OBJECT_ID_LIST_KEY) == 0) {
dir = "objects";
type = PANEL_GSETTINGS_OBJECTS;
}
+ else {
+ g_critical ("Unknown key \"%s\"", id_list_key);
+ return FALSE;
+ }
dconf_path = g_strdup_printf (PANEL_RESOURCE_PATH "/%s", dir);
existing_ids = mate_dconf_list_subdirs (dconf_path, TRUE);