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).
This commit is contained in:
Sven Neumann 2005-06-15 10:57:33 +00:00 committed by Sven Neumann
parent 96d2deee85
commit e3800a406e
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -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)

View File

@ -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: