GNOME Bugzilla – Bug 316395
Quick Mask button and dockable titles don't show shortcut in tooltip
Last modified: 2008-01-15 13:00:27 UTC
The tool tip at mouseover over the Quick Mask button doesn't show the Shortcut. This also applies to dialogs which have a shortcut assigned, e.g. the layers' dialog. It only reads 'Toggle Quick Mask' or 'Layers' or else. It should read 'Toggle Quick Mask Shift+Q' and 'Layers Ctrl+L' as the tips in the tool box and menu entries do. Other information:
We have a "Layers" button? Where's that?
I think the bug reporter is referring to the tab that indicates the Layers dialog in a dock -- it has a tooltip saying "Layers".
No matter what the "Layers" button is, this sounds like a very useful idea. I'm about to write a utility function that provides this functionality for any widget/action pair, not only for toolbox buttons.
This should be done generically in gimp_action_set_proxy(), but that needs some more thinking... 2005-09-16 Michael Natterer <mitch@gimp.org> * app/widgets/gimpwidgets-utils.[ch] (gimp_widget_set_accel_help): mis-named and mis-placed function that sets a widget's tooltip to the action's tooltip plus the action's keyboard shortcut. * app/widgets/gimptoolbox.c: at least the code is not here any more. * app/actions/tools-actions.c: use tool_info->help, not ->blurb as the action's tooltip so the above works.
Fixed in CVS for the two places mentioned. Closing as FIXED even though there are probably more places which need this. 2005-10-30 Michael Natterer <mitch@gimp.org> Fixed bug #316395: * app/actions/dialogs-actions.c (dialogs_dockable_actions) * app/actions/quick-mask-actions.c (quick_mask_toggle_actions): added tooltips to action entries. * app/display/gimpdisplayshell.c (gimp_display_shell_new): use gimp_widget_set_accel_help() to set the tooltip so it contains the accelerator. * app/dialogs/dialogs-constructors.c (dialogs_dockable_constructor): attach the dialog's identifier to the dockable widget (hack). * app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): use the attached identifier to find the action for this dockable in the dock's UI manager (HACK HACK). Use the found action to set a tooltip with accelerator. * app/widgets/gimpwidgets-utils.c (gimp_widget_set_accel_help): fixed bug in fallback code what should never be used.