Re: Another Orca code-freeze-break request
- From: Joanmarie Diggs <joanied gnome org>
- To: Frederic Peters <fpeters gnome org>
- Cc: release-team gnome org, aleiva emergya es
- Subject: Re: Another Orca code-freeze-break request
- Date: Tue, 27 Sep 2011 01:47:32 -0400
At some point during the introspection conversion, we were getting a
tuple of two items returned by get_entries_for_keycode() now we are
getting three items returned. Go figure....
On Tue, 2011-09-27 at 11:17 +0200, Frederic Peters wrote:
> Hi Joanmarie,
>
> > if keycode != 0:
> > - success, entries = keymap.get_entries_for_keycode(keycode)
> > + entries_for_keycode = keymap.get_entries_for_keycode(keycode)
> > + success = entries_for_keycode[0]
> > + entries = entries_for_keycode[1]
>
> > keymap = Gdk.Keymap.get_default()
> > - success, entries = keymap.get_entries_for_keycode(event.hw_code)
> > + entries_for_keycode = keymap.get_entries_for_keycode(event.hw_code)
> > + success = entries_for_keycode[0]
> > + entries = entries_for_keycode[1]
> > event.event_string = Gdk.keyval_name(entries[0].keycode)
>
> I don't see how those two chunks change anything. Given the traceback
> in the bug report, there should be some "if entries_for_keycode is not
> None" before referencing its parts.
>
> Am I missing something?
>
>
> Fred
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]