summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-03-31 15:02:34 -0400
committerraveit65 <[email protected]>2019-03-31 23:02:42 +0200
commitb55745426ddbbad78d8b7e4f87f2b02e83612eee (patch)
treece7871045e8a14a90e5e27c39232903d8e4bb4b5
parent550a3a04ca42d4c35e0df71d40d3c30eede2330c (diff)
downloadmate-panel-b55745426ddbbad78d8b7e4f87f2b02e83612eee.tar.bz2
mate-panel-b55745426ddbbad78d8b7e4f87f2b02e83612eee.tar.xz
Try to fix build warning
-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);