forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
529bbe01a7
commit
130541af8d
@ -1,3 +1,9 @@
|
||||
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user