Commit 82d1b13b authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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.
parent 2840d265
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment