mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-18 22:03:53 +00:00
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:
parent
96d2deee85
commit
e3800a406e
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue