summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-19 15:24:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-19 16:34:24 +1000
commit4d082915a7f178c4d656fc1f56033b758adef97f (patch)
tree096ac4623d7e48b112c2fd61227bfa80f4950b49 /src
parent32992f829262322a63e29b3118943e07481abb50 (diff)
Enclose button labels with quotes to improve readability
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'src')
-rw-r--r--src/list.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 46b8bd8..236011e 100644
--- a/src/list.c
+++ b/src/list.c
@@ -159,7 +159,10 @@ print_classes_xi2(Display* display, XIAnyClassInfo **classes,
for (j = 0; j < b->num_buttons; j++)
{
name = (b->labels[j]) ? XGetAtomName(display, b->labels[j]) : NULL;
- printf(" %s", (name) ? name : "None");
+ if (name)
+ printf(" \"%s\"", name);
+ else
+ printf(" None");
XFree(name);
}
printf("\n");