[orca] Fix for bug 666628 - gdk_keymap_translate_keyboard_state() expects Gdk.ModifierType; not int
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 666628 - gdk_keymap_translate_keyboard_state() expects Gdk.ModifierType; not int
- Date: Wed, 21 Dec 2011 01:31:22 +0000 (UTC)
commit 39ed0bb3168085d1015aa25f0383c0f3e12a7d66
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Dec 20 20:29:24 2011 -0500
Fix for bug 666628 - gdk_keymap_translate_keyboard_state() expects Gdk.ModifierType; not int
src/orca/scripts/toolkits/CALLY/script.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/CALLY/script.py b/src/orca/scripts/toolkits/CALLY/script.py
index ecf4c98..73fc33a 100644
--- a/src/orca/scripts/toolkits/CALLY/script.py
+++ b/src/orca/scripts/toolkits/CALLY/script.py
@@ -141,10 +141,11 @@ class Script(default.Script):
if keymap:
success, entries = keymap.get_entries_for_keyval(keyval)
group = entries[0].group
- keyval, egroup, level, consumed = \
- keymap.translate_keyboard_state (keyboardEvent.hw_code,
- keyboardEvent.modifiers,
- group)
+ modifiers = Gdk.ModifierType(keyboardEvent.modifiers)
+ success, keyval, egroup, level, consumed = \
+ keymap.translate_keyboard_state (keyboardEvent.hw_code,
+ modifiers,
+ group)
except:
debug.println(debug.LEVEL_FINE,
"Could not compute keyval with modifiers")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]