From b55745426ddbbad78d8b7e4f87f2b02e83612eee Mon Sep 17 00:00:00 2001 From: William Wold Date: Sun, 31 Mar 2019 15:02:34 -0400 Subject: Try to fix build warning --- mate-panel/panel-layout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1