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/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
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 *