[gtk+] Implement gdk_quartz_keymap_lookup_key
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Implement gdk_quartz_keymap_lookup_key
- Date: Wed, 22 Aug 2012 21:47:32 +0000 (UTC)
commit 2cb739a2d5b0c09e504c42f03403b417967014a9
Author: John Ralls <jralls ceridwen us>
Date: Thu Jul 26 15:21:02 2012 -0700
Implement gdk_quartz_keymap_lookup_key
gdk/quartz/gdkkeys-quartz.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c
index def39e5..c070560 100644
--- a/gdk/quartz/gdkkeys-quartz.c
+++ b/gdk/quartz/gdkkeys-quartz.c
@@ -629,17 +629,15 @@ gdk_quartz_keymap_get_entries_for_keycode (GdkKeymap *keymap,
return *n_entries > 0;
}
+#define GET_KEYVAL(keycode, group, level) (keyval_array[(keycode * KEYVALS_PER_KEYCODE + group * 2 + level)])
+
static guint
gdk_quartz_keymap_lookup_key (GdkKeymap *keymap,
const GdkKeymapKey *key)
{
- /* FIXME: Implement */
-
- return 0;
+ return GET_KEYVAL (key->keycode, key->group, key->level);
}
-#define GET_KEYVAL(keycode, group, level) (keyval_array[(keycode * KEYVALS_PER_KEYCODE + group * 2 + level)])
-
static guint
translate_keysym (guint hardware_keycode,
gint group,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]