Commit e3800a40 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

don't display a preview and don't attempt to create one if the image file

2005-06-15  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_load_thumb):
	* app/widgets/gimpthumbbox.c (gimp_thumb_box_auto_thumbnail):
	don't display a preview and don't attempt to create one if the
	image file does not exist any longer (bug #307672).
parent 96d2deee
2005-06-15 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.c (gimp_imagefile_load_thumb):
* app/widgets/gimpthumbbox.c (gimp_thumb_box_auto_thumbnail):
don't display a preview and don't attempt to create one if the
image file does not exist any longer (bug #307672).
2005-06-15 Sven Neumann <sven@gimp.org>
* app/actions/dockable-actions.c (dockable_actions_update): set the
......
......@@ -683,6 +683,9 @@ gimp_imagefile_load_thumb (GimpImagefile *imagefile,
if (gimp_thumbnail_peek_thumb (thumbnail, size) < GIMP_THUMB_STATE_EXISTS)
return NULL;
if (thumbnail->image_state == GIMP_THUMB_STATE_NOT_FOUND)
return NULL;
pixbuf = gimp_thumbnail_load_thumb (thumbnail, size, &error);
if (! pixbuf)
......
......@@ -735,6 +735,9 @@ gimp_thumb_box_auto_thumbnail (GimpThumbBox *box)
box->idle_id = 0;
if (thumb->image_state == GIMP_THUMB_STATE_NOT_FOUND)
return FALSE;
switch (thumb->thumb_state)
{
case GIMP_THUMB_STATE_NOT_FOUND:
......
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