Commit ade821a0 authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

Apply the tip only if we have a displayable name for the item. (#365031,

2006-11-16  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentchoosermenu.c:
	(gtk_recent_chooser_menu_add_tip): Apply the tip only
	if we have a displayable name for the item. (#365031,
	patch by padraig.obriain(at)sun.com)
parent cbf6d898
2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c:
(gtk_recent_chooser_menu_add_tip): Apply the tip only
if we have a displayable name for the item. (#365031,
patch by padraig.obriain(at)sun.com)
2006-11-16 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c: Provide a fast path returning
......
......@@ -847,16 +847,18 @@ gtk_recent_chooser_menu_add_tip (GtkRecentChooserMenu *menu,
return;
path = gtk_recent_info_get_uri_display (info);
tip_text = g_strdup_printf (_("Open '%s'"), path);
gtk_tooltips_set_tip (priv->tooltips,
item,
tip_text,
NULL);
if (path)
{
tip_text = g_strdup_printf (_("Open '%s'"), path);
g_free (path);
g_free (tip_text);
gtk_tooltips_set_tip (priv->tooltips,
item,
tip_text,
NULL);
g_free (path);
g_free (tip_text);
}
}
static GtkWidget *
......
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