summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-icon-factory-private.h
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2000-10-31 06:09:18 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2000-10-31 06:09:18 +0000
commitf7f655c0c5ef9c54989af62bcf6215e3b0178646 (patch)
tree1e36969c46b713167b8937a1f6d2bbc057417711 /libnautilus-extensions/nautilus-icon-factory-private.h
parentfd020b577e374b4460143a1d10debe154d9eb232 (diff)
downloadnautilus-f7f655c0c5ef9c54989af62bcf6215e3b0178646.tar.gz
made thumbnailing work remotely for all images, by treating small remote
made thumbnailing work remotely for all images, by treating small remote files like large ones and keeping a local thumbnail for them. * libnautilus-extensions/nautilus-icon-factory-private.h: moved SELF_THUMBNAIL_SIZE_THRESHOLD constant into private, so it could be shared with nautilus-thumbnails. * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file): if a file is remote, make a thumbnail even if it's smaller than the size threshold. * libnautilus-extensions/nautilus-thumbnails.c: (make_thumbnails): don't use a frame for files smaller than the size threshold.
Diffstat (limited to 'libnautilus-extensions/nautilus-icon-factory-private.h')
-rw-r--r--libnautilus-extensions/nautilus-icon-factory-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-icon-factory-private.h b/libnautilus-extensions/nautilus-icon-factory-private.h
index 475758eff..5b57b12e2 100644
--- a/libnautilus-extensions/nautilus-icon-factory-private.h
+++ b/libnautilus-extensions/nautilus-icon-factory-private.h
@@ -28,6 +28,12 @@
#include "nautilus-icon-factory.h"
+/* For now, images are used themselves as thumbnails when they are
+ * below this threshold size. Later we might have to have a more
+ * complex rule about when to use an image for itself.
+ */
+#define SELF_THUMBNAIL_SIZE_THRESHOLD 16384
+
void nautilus_icon_factory_remove_by_uri (const char *uri);
#endif /* NAUTILUS_ICON_FACTORY_PRIVATE_H */