added new enum GimpThumbnailSize.

2002-04-29  Sven Neumann  <sven@gimp.org>

	* app/core/core-enums.[ch]: added new enum GimpThumbnailSize.

	* app/gimprc.c
	* app/config/gimpcoreconfig.[ch]
	* app/core/gimpcoreconfig.[ch]: replaced old gimprc value
	write_thumbnails with thumbnail_size.

	* app/core/gimpimagefile.[ch]: allow to specify a thumbnail size.

	* app/core/gimpdocuments.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/gui/preferences-dialog.c
	* app/widgets/gimpdocumentview.c: changed accordingly.

	* app/gui/file-open-dialog.c: create the preview according to the
	users choice of thumbnail size. Doesn't update on changes yet.
This commit is contained in:
Sven Neumann
2002-04-29 19:41:45 +00:00
committed by Sven Neumann
parent 927a100584
commit 9b6cde9da0
20 changed files with 524 additions and 396 deletions

View File

@ -330,7 +330,8 @@ gimp_document_view_refresh_clicked (GtkWidget *widget,
if (imagefile && gimp_container_have (editor->view->container,
GIMP_OBJECT (imagefile)))
{
gimp_imagefile_create_thumbnail (imagefile);
/* FIXME: hardcoded thumbnail size */
gimp_imagefile_create_thumbnail (imagefile, GIMP_THUMBNAIL_SIZE_NORMAL);
}
}
@ -338,7 +339,8 @@ static void
gimp_document_view_delete_dangling_foreach (GimpImagefile *imagefile,
GimpContainer *container)
{
gimp_imagefile_update (imagefile);
/* FIXME: hardcoded thumbnail size */
gimp_imagefile_update (imagefile, GIMP_THUMBNAIL_SIZE_NORMAL);
if (imagefile->state == GIMP_IMAGEFILE_STATE_NOT_FOUND)
{