Hi,
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
- I'm not sure if this causes too much overhead for translators - maybe I'm overlooking something about user-specific personal adaptions to shortcuts or localized versions, etc., that makes shortcuts in the tooltips useless for some reason.
Just wanted to make sure that this is really desired.
Max
P.S.: I seem to remember that the consensus was also to display the mnemonic shortcuts in the toolbox (rather than 'F1', 'F2', etc.). I wasn't able to find the location where these are set, though. If this change is agreed upon, too, could someone point me to the corresponding file? Thanks.
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?
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.
I was just about to ask if there is a way to extract the shortcuts automatically when I discovered that in keys/default.xml there is an attribute for each verb which controls whether its shortcut is displayed in tooltip and menu entry. Questions:
1) For the tool contexts, would it be a good idea to use this attributes in the mnemonic shortcuts rather than the generic ones? (I seem to remember that this was the consensus of the discussion.)
2) For other verbs (e.g., "ZoomDrawing") this attribute is set but the shortcut is only displayed in the menu, not in the tooltip of the corresponding toolbar button. Why?
3) How to automatically extract shortcuts for actions without associated verb? Or would the preferred way be to provide a verb for them, too? Generally, when should verbs be used and when not?
BTW, is keys/defaults.xml the only way for the user to change the keyboard shortcuts?
Max
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
participants (3)
-
Bryce Harrington
-
bulia byak
-
Maximilian Albert