Commit 130541af authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

Return GTK_STOCK_DIRECTORY for entries with MIME type

2007-05-09  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
	with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.

svn path=/trunk/; revision=17804
parent 529bbe01
2007-05-09 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c:
(gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries
with MIME type "x-directory/normal", instead of GTK_STOCK_FILE.
2007-05-05 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdrawable-quartz.c:
......
......@@ -2049,9 +2049,14 @@ gtk_recent_info_get_icon (GtkRecentInfo *info,
if (info->mime_type)
retval = get_icon_for_mime_type (info->mime_type, size);
/* this should never fail */
/* this function should never fail */
if (!retval)
retval = get_icon_fallback (GTK_STOCK_FILE, size);
{
if (info->mime_type && strcmp (info->mime_type, "x-directory/normal") == 0)
retval = get_icon_fallback (GTK_STOCK_DIRECTORY, size);
else
retval = get_icon_fallback (GTK_STOCK_FILE, size);
}
return retval;
}
......
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