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:
Michael Natterer 2005-05-31 13:56:46 +00:00 committed by Michael Natterer
parent 2840d26518
commit 82d1b13b5c
2 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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;