[PATCH 4/4] wmmenugen: Sort menu entries with no category into 'Other'.
Doug Torrance <[email protected]> Thu, 6 Jul 2017 19:48:16 -0400
| Newsgroups | gmane.compw.window-managers.windowmaker.devel |
|---|---|
| Message-ID | <[email protected]> |
---
util/wmmenugen_parse_xdg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/util/wmmenugen_parse_xdg.c b/util/wmmenugen_parse_xdg.c
index e909f18c..3272ee60 100644
--- a/util/wmmenugen_parse_xdg.c
+++ b/util/wmmenugen_parse_xdg.c
@@ -178,6 +178,9 @@ void parse_xdg(const char *file, cb_add_menu_entry *addWMMenuEntryCallback)
getMenuHierarchyFor(&xdg->Category);
}
+ if (xdg->Category == NULL)
+ xdg->Category = wstrdup(_("Other"));
+
wfree(key);
key = NULL;
}
--
2.11.0
--
To unsubscribe, send mail to [email protected].