Commit d9ef715e authored by Cosimo Cecchi's avatar Cosimo Cecchi
Browse files

file: use a frame around custom icons

Make it consistent with the appearance of thumbnails.
parent 17f17214
......@@ -4232,8 +4232,20 @@ nautilus_file_get_icon (NautilusFile *file,
gicon = get_custom_icon (file);
if (gicon) {
GdkPixbuf *pixbuf;
icon = nautilus_icon_info_lookup (gicon, size);
g_object_unref (gicon);
pixbuf = nautilus_icon_info_get_pixbuf (icon);
if (pixbuf != NULL) {
nautilus_ui_frame_image (&pixbuf);
g_object_unref (icon);
icon = nautilus_icon_info_new_for_pixbuf (pixbuf);
g_object_unref (pixbuf);
return icon;
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