diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-19 15:24:30 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-19 16:34:24 +1000 |
commit | 4d082915a7f178c4d656fc1f56033b758adef97f (patch) | |
tree | 096ac4623d7e48b112c2fd61227bfa80f4950b49 /src | |
parent | 32992f829262322a63e29b3118943e07481abb50 (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); |