GNOME Bugzilla – Bug 721295
Update and deprecate gi.overrides.keysyms
Last modified: 2014-08-06 04:40:56 UTC
The keysyms module is a carryover from PyGTK that can be both dynamically generated and should also be deprecated. Almost all of the keysyms exist in the Gdk module brought in through introspection as Gdk.KEY_<name> Also note that this module is only available in as gi.overrides.keysyms and not available through gi.repository, so it would be a bit strange if there was actual usage of it. I think importing that module could probably just give a hard runtime warning if imported. pygtkcompat was already dynamically generating these, so we should just move that code into the keysyms module. There were a few Armenian keys left in for compatibility as they don't seem to exist in Gdk any longer. Furthermore, some of the values seem to have changed in newer versions of Gdk: gi.overrides.keysyms.Armenian_accent == 0x14b0 Gdk.KEY_Armenian_accent == 0x100055b
Created attachment 265092 [details] [review] Update and deprecate gi.overrides.keysyms Replace manually assigned keysyms with a dynamically generated version pulling names and values from Gdk via GI. Add a runtime warning when this module is imported.
No point in keeping this legacy stuff around especially when it is most likely not used. The following fix has been pushed: 5ca4d25 Update and deprecate gi.overrides.keysyms