mirror of https://github.com/GNOME/gimp.git
re-enabled tooltips on the "Open Recent" menu items, using an evil but
2005-05-31 Michael Natterer <mitch@gimp.org> * app/widgets/gimpaction.c (gimp_action_set_proxy): re-enabled tooltips on the "Open Recent" menu items, using an evil but documented heuristic.
This commit is contained in:
parent
2840d26518
commit
82d1b13b5c
|
@ -1,3 +1,9 @@
|
|||
2005-05-31 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpaction.c (gimp_action_set_proxy): re-enabled
|
||||
tooltips on the "Open Recent" menu items, using an evil but
|
||||
documented heuristic.
|
||||
|
||||
2005-05-31 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpenumwidgets.c
|
||||
|
|
|
@ -260,6 +260,27 @@ gimp_action_set_proxy (GimpAction *action,
|
|||
if (! GTK_IS_IMAGE_MENU_ITEM (proxy))
|
||||
return;
|
||||
|
||||
/* This is not quite the correct check, but works fine to enable
|
||||
* tooltips only for the "Open Recent" menu items, since they are
|
||||
* the only ones having both a viewable and a tooltip. --mitch
|
||||
*/
|
||||
if (action->viewable)
|
||||
{
|
||||
gchar *tooltip = NULL;
|
||||
|
||||
g_object_get (action, "tooltip", &tooltip, NULL);
|
||||
|
||||
if (tooltip)
|
||||
{
|
||||
const gchar *help_id;
|
||||
|
||||
help_id = g_object_get_qdata (proxy, GIMP_HELP_ID);
|
||||
|
||||
gimp_help_set_help_data (proxy, tooltip, help_id);
|
||||
g_free (tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
if (action->color)
|
||||
{
|
||||
GtkWidget *area;
|
||||
|
|
Loading…
Reference in New Issue