added libgimpthumb.

2003-12-08  Sven Neumann  <sven@gimp.org>

	* Makefile.am (SUBDIRS): added libgimpthumb.

	* libgimpthumb/gimpthumb-utils.c
	* libgimpthumb/gimpthumbnail.c: basic functionality is implemented
	and seems to be working.

	* app/Makefile.am: link the application against libgimpthumb.

	* app/core/core-types.h: include libgimpthumb/gimpthumb-types.h.

	* app/core/gimpimagefile.[ch]: removed thumbnail handling routines
	and use libgimpthumb instead. Fixes bug #127914.

	* app/gui/file-open-dialog.c
	* app/widgets/gimpdocumentview.c: changed accordingly.
This commit is contained in:
Sven Neumann
2003-12-08 09:12:25 +00:00
committed by Sven Neumann
parent e6249912c4
commit d8903a2477
15 changed files with 259 additions and 972 deletions

View File

@ -35,6 +35,7 @@
#include <gtk/gtk.h>
#include "libgimpmath/gimpmath.h"
#include "libgimpthumb/gimpthumb.h"
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
@ -440,7 +441,7 @@ file_open_create_thumbnail (Gimp *gimp,
gimp_imagefile_update (imagefile, size);
gimp_viewable_get_preview (GIMP_VIEWABLE (imagefile), size, size);
if (imagefile->state < GIMP_IMAGEFILE_STATE_THUMBNAIL_FAILED)
if (imagefile->thumbnail->thumb_state < GIMP_THUMB_STATE_FAILED)
gimp_imagefile_create_thumbnail (imagefile, size);
}