Comment 29 for bug 688136

Revision history for this message
In , Michael Terry (mterry) wrote :

RCP apps will have their menus fixed in Ubuntu by a patch I've made to libdbusmenu [1]. This will hopefully get backported to Ubuntu 11.04.

However! There is one issue with global menu support that I just can't seem to fix from outside of RCP itself. The issue is keyboard shortcut labels on menu items. Right now, it's a bit hit or miss whether they show up.

RCP has two MenuItem accelerator-related methods. It can call setAccelerator on the menu item which installs the key codes themselves and tells GTK+ about it. This we can detect and show correctly.

The other method is to just set the text itself on the menu item and RCP seems to handle the key press itself elsewhere. So all GTK+ knows about is that there is (possibly translated) text representing the shortcut in the label.

Is there a way to get RCP to also use setAccelerator whenever it sets shortcut labels? That would ensure that menu items work correctly.

[1] https://code.launchpad.net/~mterry/dbusmenu/eclipse-rcp