GNOME Bugzilla – Bug 340675
gtk.AccelGroup_connect_group() needs implemented
Last modified: 2008-02-13 03:00:53 UTC
This method needs to be implemented to allow easy global keybindings writing. see: http://developer.gnome.org/doc/API/2.0/gtk/gtk-Keyboard-Accelerators.html#gtk-accel-group-connect Example code in python: # key accelerators self.accel_group = gtk.AccelGroup() self.accel_group.connect_group(ord('q'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.delete) self.accel_group.connect_group(ord('w'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.remove_current_book) self.accel_group.connect_group(ord('t'), gtk.gdk.CONTROL_MASK, gtk.ACCEL_LOCKED, self.add_new_book) window.add_accel_group(self.accel_group)
Adam, you were talking with Khiraly about this, right? Did you come to the conclusion that there's something we need over and above your Action code? AfC
We don't use bugzilla for tracking "missing" coverage, only for issues relating to problems with released (or about to release) code. We do need to implement Accelerators. Vreixo tried a year or so ago, but it was a mess and not accepted. With Action landing in 4.0.4 and with Keyval now bein properly mapped as of 4.0.6, I think we should be able to have another try at Accelerators. Further discussion on list, please. AfC