+ } else if (strcasecmp(last_key, "layout") == 0) {
+ char *buf = NULL;
+ asprintf(&buf, "%.*s", (int)len, val);
+ if (strcasecmp(buf, "default") == 0)
+ json_node->layout = L_DEFAULT;
+ else if (strcasecmp(buf, "stacked") == 0)
+ json_node->layout = L_STACKED;
+ else if (strcasecmp(buf, "tabbed") == 0)
+ json_node->layout = L_TABBED;
+ else if (strcasecmp(buf, "dockarea") == 0)
+ json_node->layout = L_DOCKAREA;
+ else if (strcasecmp(buf, "output") == 0)
+ json_node->layout = L_OUTPUT;
+ else LOG("Unhandled \"layout\": %s\n", buf);
+ free(buf);