From 62eb167d56f021a1aa151c9431d320b16a0a3794 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sat, 25 Apr 2009 14:51:46 +1000 Subject: [PATCH] XKB: Text: Use keysym <-> string conversion from keysym.c Signed-off-by: Daniel Stone --- src/text.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/text.c b/src/text.c index 9da18b6..3f8e554 100644 --- a/src/text.c +++ b/src/text.c @@ -380,17 +380,7 @@ XkbcActionTypeText(unsigned type) char * XkbcKeysymText(KeySym sym) { - char *buf; - - if (sym == NoSymbol) - return "NoSymbol"; - - if ((buf = XkbcKeysymToString(sym))) - return buf; - - buf = tbGetBuffer(32); - snprintf(buf, 32, "0x%lx", (long)sym); - return buf; + return XkbcKeysymToString(sym); } char * -- 2.7.4