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:
Mukund Sivaraman 2007-04-25 14:10:20 +00:00 committed by Mukund Sivaraman
parent a484bf8aea
commit 53c98d7186
3 changed files with 12 additions and 0 deletions

View File

@ -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>
* plug-ins/common/tiff-load.c

View File

@ -532,6 +532,8 @@ load_image (const gchar *filename, TiffSelectedPages *pages)
TIFFSetDirectory (tif, pages->pages[li]);
ilayer = pages->pages[li];
gimp_progress_update (0.0);
TIFFGetFieldDefaulted (tif, TIFFTAG_BITSPERSAMPLE, &bps);
if (bps > 8 && bps != 16)
@ -1018,6 +1020,8 @@ load_image (const gchar *filename, TiffSelectedPages *pages)
gimp_image_undo_enable (image);
gimp_image_clean_all (image);
}
gimp_progress_update (1.0);
}
if (! do_images)

View File

@ -815,6 +815,8 @@ save_image (const gchar *filename,
TIFFFlushData (tif);
TIFFClose (tif);
gimp_progress_update (1.0);
gimp_drawable_detach (drawable);
g_free (data);