[clutter] event: Use gunichar when dealing with unicode characters
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] event: Use gunichar when dealing with unicode characters
- Date: Tue, 12 Mar 2013 21:10:15 +0000 (UTC)
commit 36e25374cc87145e4d1398baf9dd204616d68a24
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Mar 5 01:06:03 2013 -0500
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
clutter/clutter-event.c | 4 ++--
clutter/clutter-event.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c
index c0ef2c2..2547572 100644
--- a/clutter/clutter-event.c
+++ b/clutter/clutter-event.c
@@ -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 ||
diff --git a/clutter/clutter-event.h b/clutter/clutter-event.h
index 34566c7..65ba151 100644
--- a/clutter/clutter-event.h
+++ b/clutter/clutter-event.h
@@ -470,8 +470,8 @@ void clutter_event_set_key_code (ClutterEvent
guint16 key_code);
guint16 clutter_event_get_key_code (const ClutterEvent *event);
void clutter_event_set_key_unicode (ClutterEvent *event,
- guint32 key_unicode);
-guint32 clutter_event_get_key_unicode (const ClutterEvent *event);
+ gunichar key_unicode);
+gunichar clutter_event_get_key_unicode (const ClutterEvent *event);
void clutter_event_set_button (ClutterEvent *event,
guint32 button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]