>>>>> "John" == John Spray <[EMAIL PROTECTED]> writes:

John> Hi, I've written a function (attached patch) to take something
John> like "S-C-n" and translate it into the "<shift><control>n" form
John> that GTK wants for its accelerators. However, when I add
John> accelerators to menu elements (not just the ones my function
John> generates, any accelerator will do) runtime errors are generated
John> at quit:

While I do not have anything useful to say about the errors, I'd like
to point you to GLyXKeySym::print, which is the right hook for
generating a correct string corresponding to a given keysym. Currently
it points to kb_keymap::printKeySym, which gives the C-S-n, but
you can rewrite it to your liking as is done in QLyXKeySym::print.

Please complain if these are not enough to display shortcuts as you
would prefer. 

JMarc

Reply via email to