After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340675 - gtk.AccelGroup_connect_group() needs implemented
gtk.AccelGroup_connect_group() needs implemented
Status: RESOLVED INVALID
Product: java-gnome
Classification: Bindings
Component: Obsolete
Unmaintained
Other Linux
: Normal normal
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-04 19:24 UTC by khiraly
Modified: 2008-02-13 03:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description khiraly 2006-05-04 19:24:40 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)
Comment 1 Andrew Cowie 2006-05-07 13:26:47 UTC
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
Comment 2 Andrew Cowie 2008-02-13 03:00:53 UTC
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