GNOME Bugzilla – Bug 488703
Accuracy menu entries have strange "-/-" characters at the end of each of them.
Last modified: 2007-11-03 07:33:31 UTC
Summary pretty much says it all. This is with the new Glade version in SVN trunk.
I think this is the accelerator label going wrong, see: http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/gtkcheckmenuitem.c The existing code used Gtk UI builder which did not add an accelerator label to the menu items. If we want to match the existing behaviour (i.e. no labels) we will have to connect the accelerators to another object or we need to work out why the labels are '-/-' and not 'Ctrl-0'.
Just tried the Acc menu items with gcalctool from GNOME 2.20. It's not Ctrl-[0-9] that triggers the particular menu item; it's just [0-9]. Note that I've also filed bug #489109 - gcalctool buttons with menus can't be displayed via their keyboard shortcuts, on another related problem.
If this is potentially a Gtk+ bug/problem, we should probably do two things: 1/ File a bug against Gtk+ for this issue. 2/ Try to work around it with code somewhere in gtk.c
Robert, could you file a bug against Gtk+ on this please. If it's doable, could you also work around it with a routine in gtk.c that get's called after the menus have been loaded from the Glade file. Thanks.
The final patch in bug 485919 fixes this by handling the shortcuts in kframe_key_press_cb() (like the other button events). This avoids the problem. GTK+ issue raised in bug 492943. Closing.