projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8bb86a
)
XKB: Text: Use keysym <-> string conversion from keysym.c
author
Daniel Stone
<daniel@fooishbar.org>
Sat, 25 Apr 2009 04:51:46 +0000
(14:51 +1000)
committer
Daniel Stone
<daniel@fooishbar.org>
Tue, 22 Jun 2010 14:56:55 +0000
(15:56 +0100)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/text.c
patch
|
blob
|
history
diff --git
a/src/text.c
b/src/text.c
index
9da18b6
..
3f8e554
100644
(file)
--- 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 *