GNOME Bugzilla – Bug 363776
keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.group)
Last modified: 2018-08-17 13:37:57 UTC
+++ This bug was initially created as a clone of Bug #354731 +++ What were you doing when the application crashed? attempting to set a shortcut key to bring up the deskbar in deskbar preferences. the key i was attempting to set was specific to my model of keyboard (ms comfort curve 2000 usb) and is apparently mapped to 0x7a ("search" key). Distribution: Ubuntu 6.10 (edgy) Gnome Release: 2.16.0 2006-09-04 (Ubuntu) BugBuddy Version: 2.16.0 Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0 Traceback (most recent call last):
+ Trace 77387
(keyval, egroup, level, consumed_modifiers) = keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.group)
bug 354731 comment 5, Rob Bradford > This looks like a bug in the pygtk bindings. Since the documentation says it > will always return the Keymap for the display. Therefore it is safe for deskbar > to expect just that :) bug 354731 comment 6, Johan Dahlin > I think that the behavior is correct, this just needs to be reflected in the > documentation. The PyGTK documentation flaw about bug 354731, which is not a crash. ;) Confirming as per these comments.
Oh, right -- I'm not a Python hacker, so I just hope I got the description at least somewhat correct. Feel free to adjust. ;)
pygtk is not under active development anymore and had its last code changes in 2013. Its codebase has been archived: https://gitlab.gnome.org/Archive/pygtk/commits/master PyGObject at https://gitlab.gnome.org/GNOME/pygobject is its successor. See https://pygobject.readthedocs.io/en/latest/guide/porting.html for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent version of PyGObject. Thanks!