diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2001-01-18 01:28:27 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2001-01-18 01:28:27 +0000 |
commit | 230962629537dfae1f5e66035167eaebf1d4de2f (patch) | |
tree | cb91399fba404d8516c62bec076ad47fb0ce05f4 /libnautilus-private/nautilus-thumbnails.h | |
parent | 94f5d2645b84ba8cde8ae44117e20bb66ac63419 (diff) | |
download | nautilus-230962629537dfae1f5e66035167eaebf1d4de2f.tar.gz |
fixed bugs 5674, 5697 and 5699, Nautilus shows a broken image icon instead
fixed bugs 5674, 5697 and 5699, Nautilus shows a broken image
icon instead of a mime-type icon for image types that it doesn't
support. Fixed by generating a zero-length placeholder thumbnail
instead of the broken image icon; the icon factory tests for the
placeholder and uses the proper mime-type icon when it's present.
* libnautilus-extensions/nautilus-icon-factory.c:
(should_display_image_file_as_itself),
(nautilus_icon_factory_get_icon_for_file):
made should_display_image_file_as_itself return FALSE when the
placeholder is present.
* libnautilus-extensions/nautilus-thumbnails.c:
(make_invalid_thumbnail_uri),
(nautilus_thumbnail_has_invalid_thumbnail), (check_for_thumbnails):
added routine to test if a placeholder is present, and made it
generate the placeholder when thumbnailing fails.
* libnautilus-extensions/nautilus-thumbnails.h:
added nautilus_thumbnail_has_invalid_thumbnail
Diffstat (limited to 'libnautilus-private/nautilus-thumbnails.h')
-rw-r--r-- | libnautilus-private/nautilus-thumbnails.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-thumbnails.h b/libnautilus-private/nautilus-thumbnails.h index 8d192e070..d4d2c6377 100644 --- a/libnautilus-private/nautilus-thumbnails.h +++ b/libnautilus-private/nautilus-thumbnails.h @@ -30,6 +30,8 @@ /* Returns NULL if there's no thumbnail yet. */ char *nautilus_get_thumbnail_uri (NautilusFile *file, gboolean anti_aliased); +gboolean nautilus_thumbnail_has_invalid_thumbnail (NautilusFile *file, gboolean anti_aliased); + void nautilus_update_thumbnail_file_renamed (const char *old_file_name, const char *new_file_name); |