diff --git a/ChangeLog b/ChangeLog index 412b7b5e78..016f71bb9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-09 Emmanuele Bassi + + * 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 * gdk/quartz/gdkdrawable-quartz.c: diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index c8e16828ec..663e5fb4b0 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.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; }