summaryrefslogtreecommitdiff
path: root/openbox/menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2012-09-30 15:50:26 -0400
committerDana Jansens <danakj@orodu.net>2012-09-30 15:53:35 -0400
commitdff52764822f68596134c2548966eb78777b6d2a (patch)
tree08fed8a4bec1aee59d5b7d63a5616b838f31b8a0 /openbox/menu.c
parent3aee1ac3a199a40020e204e42ed9a48e2f4e1404 (diff)
Don't strip leading whitespace from menu labels (Fix bug 4782)
Diffstat (limited to 'openbox/menu.c')
-rw-r--r--openbox/menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index 7d8f0ba2..eaf081d9 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -279,7 +279,7 @@ static void parse_menu_item(xmlNodePtr node, gpointer data)
/* Don't try to extract "icon" attribute if icons in user-defined
menus are not enabled. */
- if (obt_xml_attr_string(node, "label", &label)) {
+ if (obt_xml_attr_string_unstripped(node, "label", &label)) {
xmlNodePtr c;
GSList *acts = NULL;
@@ -314,7 +314,7 @@ static void parse_menu_separator(xmlNodePtr node, gpointer data)
if (state->parent) {
gchar *label;
- if (!obt_xml_attr_string(node, "label", &label))
+ if (!obt_xml_attr_string_unstripped(node, "label", &label))
label = NULL;
menu_add_separator(state->parent, -1, label);
@@ -334,7 +334,7 @@ static void parse_menu(xmlNodePtr node, gpointer data)
goto parse_menu_fail;
if (!g_hash_table_lookup(menu_hash, name)) {
- if (!obt_xml_attr_string(node, "label", &title))
+ if (!obt_xml_attr_string_unstripped(node, "label", &title))
goto parse_menu_fail;
if ((menu = menu_new(name, title, TRUE, NULL))) {