[nautilus] file: use a frame around custom icons
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: use a frame around custom icons
- Date: Fri, 31 Aug 2012 16:27:29 +0000 (UTC)
commit d9ef715ea11e92917414d5d7bddd4dd1487fac1b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 31 12:25:43 2012 -0400
file: use a frame around custom icons
Make it consistent with the appearance of thumbnails.
https://bugzilla.gnome.org/show_bug.cgi?id=524392
libnautilus-private/nautilus-file.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 75565c3..2018cec 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]