summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-info.c
diff options
context:
space:
mode:
authorChristian Neumair <cneumair@gnome.org>2008-07-15 06:49:34 +0000
committerChristian Neumair <cneumair@src.gnome.org>2008-07-15 06:49:34 +0000
commit7a76d2458611d1ae83feac7b1bb76d86b12a57da (patch)
treefd6926e1795c731c1697d66b57f361a17bcde9ee /libnautilus-private/nautilus-icon-info.c
parent82d2b78b236123fee80ae9c0b5170924355e12c7 (diff)
downloadnautilus-7a76d2458611d1ae83feac7b1bb76d86b12a57da.tar.gz
Display emblems for small icon sizes, down to 16 pixels.
2008-07-15 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-icon-info.c (nautilus_icon_get_emblem_size_for_icon_size): * src/file-manager/fm-list-model.c (fm_list_model_get_value): Display emblems for small icon sizes, down to 16 pixels. svn path=/trunk/; revision=14361
Diffstat (limited to 'libnautilus-private/nautilus-icon-info.c')
-rw-r--r--libnautilus-private/nautilus-icon-info.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-info.c b/libnautilus-private/nautilus-icon-info.c
index c85e8af7d..6907fc32c 100644
--- a/libnautilus-private/nautilus-icon-info.c
+++ b/libnautilus-private/nautilus-icon-info.c
@@ -681,8 +681,10 @@ nautilus_icon_get_emblem_size_for_icon_size (guint size)
return 32;
if (size >= 48)
return 24;
- if (size >= 32)
+ if (size >= 24)
return 16;
+ if (size >= 16)
+ return 12;
return 0; /* no emblems for smaller sizes */
}