plug-ins/common/tiff-load.c make progress bars progress to completion.
2007-04-25 Mukund Sivaraman <muks@mukund.org> * plug-ins/common/tiff-load.c * plug-ins/common/tiff-save.c: make progress bars progress to completion. svn path=/trunk/; revision=22327
This commit is contained in:

committed by
Mukund Sivaraman

parent
a484bf8aea
commit
53c98d7186
@ -1,3 +1,9 @@
|
|||||||
|
2007-04-25 Mukund Sivaraman <muks@mukund.org>
|
||||||
|
|
||||||
|
* plug-ins/common/tiff-load.c
|
||||||
|
* plug-ins/common/tiff-save.c: make progress bars progress to
|
||||||
|
completion.
|
||||||
|
|
||||||
2007-04-25 Mukund Sivaraman <muks@mukund.org>
|
2007-04-25 Mukund Sivaraman <muks@mukund.org>
|
||||||
|
|
||||||
* plug-ins/common/tiff-load.c
|
* plug-ins/common/tiff-load.c
|
||||||
|
@ -532,6 +532,8 @@ load_image (const gchar *filename, TiffSelectedPages *pages)
|
|||||||
TIFFSetDirectory (tif, pages->pages[li]);
|
TIFFSetDirectory (tif, pages->pages[li]);
|
||||||
ilayer = pages->pages[li];
|
ilayer = pages->pages[li];
|
||||||
|
|
||||||
|
gimp_progress_update (0.0);
|
||||||
|
|
||||||
TIFFGetFieldDefaulted (tif, TIFFTAG_BITSPERSAMPLE, &bps);
|
TIFFGetFieldDefaulted (tif, TIFFTAG_BITSPERSAMPLE, &bps);
|
||||||
|
|
||||||
if (bps > 8 && bps != 16)
|
if (bps > 8 && bps != 16)
|
||||||
@ -1018,6 +1020,8 @@ load_image (const gchar *filename, TiffSelectedPages *pages)
|
|||||||
gimp_image_undo_enable (image);
|
gimp_image_undo_enable (image);
|
||||||
gimp_image_clean_all (image);
|
gimp_image_clean_all (image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gimp_progress_update (1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! do_images)
|
if (! do_images)
|
||||||
|
@ -815,6 +815,8 @@ save_image (const gchar *filename,
|
|||||||
TIFFFlushData (tif);
|
TIFFFlushData (tif);
|
||||||
TIFFClose (tif);
|
TIFFClose (tif);
|
||||||
|
|
||||||
|
gimp_progress_update (1.0);
|
||||||
|
|
||||||
gimp_drawable_detach (drawable);
|
gimp_drawable_detach (drawable);
|
||||||
g_free (data);
|
g_free (data);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user