event: Use gunichar when dealing with unicode characters
This makes introspection return the keycode as a string, rather than an integer. https://bugzilla.gnome.org/show_bug.cgi?id=695188
This commit is contained in:
@ -837,7 +837,7 @@ clutter_event_set_key_code (ClutterEvent *event,
|
||||
*
|
||||
* Return value: The unicode value representing the key
|
||||
*/
|
||||
guint32
|
||||
gunichar
|
||||
clutter_event_get_key_unicode (const ClutterEvent *event)
|
||||
{
|
||||
g_return_val_if_fail (event != NULL, 0);
|
||||
@ -862,7 +862,7 @@ clutter_event_get_key_unicode (const ClutterEvent *event)
|
||||
*/
|
||||
void
|
||||
clutter_event_set_key_unicode (ClutterEvent *event,
|
||||
guint32 key_unicode)
|
||||
gunichar key_unicode)
|
||||
{
|
||||
g_return_if_fail (event != NULL);
|
||||
g_return_if_fail (event->type == CLUTTER_KEY_PRESS ||
|
||||
|
Reference in New Issue
Block a user