![](https://secure.gravatar.com/avatar/8d5128b5b838ecedc34635fba7995f7f.jpg?s=120&d=mm&r=g)
On Sun, Jan 13, 2008 at 07:20:25PM +0100, Maximilian Albert wrote:
bulia byak schrieb:
On Jan 11, 2008 10:15 PM, Maximilian Albert <Anhalter42@...173...> wrote:
some time ago there was a discussion about adding keyboard shortcuts to the tooltips in the various toolbars (although I can't find the corresponding posts right now). I have done this in my local repository but wanted to ask before committing it to SVN because
So how did you do this - just added manually, or are they pulled automatically from somewhere? is that only for verbs?
Nope, not automatically. Simply looked up all shortcuts (also for non-verbs) and added them to the respective strings. That's why I asked
- it feels a bit awkward and certainly gives wrong hints in case the
user's shortcuts were tweaked.
One additional point that might be worth consideration in this. I was working on a bugfix to strip out the pango markup "<b>bold:</b> blah" in tooltips that we use in status bar messages, when I noticed our tooltip functionality (Gtk::Tooltips) is deprecated in newer gtk 2.12 (Gtk::Tooltip). We opted not to upgrade to 2.12 for the 0.46 release, but I think once the release is out, we definitely should move our requirements to that. (There's several bugs/features that we workaround that'll have better fixes in 2.12.)
The new Gtk::Tooltip API gives functionality well beyond what our current tooltips have. It supports the pango markup text for bold, italic, underline, and so on. It also allows including icons in tooltips. So perhaps this could be helpful in setting off the shortcut keys (making them bold for example).
BTW, is keys/defaults.xml the only way for the user to change the keyboard shortcuts?
Yup.
Bryce