return ret;
}
-const gchar *translate_keycode(guint keycode)
+gchar *translate_keycode(guint keycode)
{
KeySym sym;
const gchar *ret = NULL;
{
gunichar unikey = 0;
- const char *key;
+ char *key;
if ((key = translate_keycode(keycode)) != NULL &&
/* don't accept keys that aren't a single letter, like "space" */
key[1] == '\0')
gboolean translate_key(const gchar *str, guint *state, guint *keycode);
/*! Give the string form of a keycode */
-const gchar *translate_keycode(guint keycode);
+gchar *translate_keycode(guint keycode);
/*! Translate a keycode to the unicode character it represents */
gunichar translate_unichar(guint keycode);