Commit c52bcc6d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

when recreating the thumbnail, delete old thumbnails and create it in the

2004-10-11  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c
	(documents_recreate_preview_cmd_callback): when recreating the
	thumbnail, delete old thumbnails and create it in the configured
	thumbnail size instead of the container view preview size.

	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_update_thumb):
	reset the image info when the thumbnail state changes.
parent 5460383b
2004-10-11 Sven Neumann <sven@gimp.org>
* app/actions/documents-commands.c
(documents_recreate_preview_cmd_callback): when recreating the
thumbnail, delete old thumbnails and create it in the configured
thumbnail size instead of the container view preview size.
* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_update_thumb):
reset the image info when the thumbnail state changes.
2004-10-11 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.c: construct a case-insensitive glob
......
......@@ -27,6 +27,8 @@
#include "actions-types.h"
#include "config/gimpcoreconfig.h"
#include "core/gimp.h"
#include "core/gimpcontainer.h"
#include "core/gimpcontext.h"
......@@ -192,11 +194,16 @@ documents_recreate_preview_cmd_callback (GtkAction *action,
if (imagefile && gimp_container_have (container, GIMP_OBJECT (imagefile)))
{
gint preview_size;
const gchar *uri = gimp_object_get_name (GIMP_OBJECT (imagefile));
gint size = imagefile->gimp->config->thumbnail_size;
if (!size)
return;
preview_size = gimp_container_view_get_preview_size (editor->view, NULL);
if (uri)
gimp_thumbs_delete_for_uri (uri);
gimp_imagefile_create_thumbnail (imagefile, context, NULL, preview_size);
gimp_imagefile_create_thumbnail (imagefile, context, NULL, size);
}
}
......
......@@ -708,7 +708,14 @@ gimp_thumbnail_update_thumb (GimpThumbnail *thumbnail,
thumbnail->thumb_mtime = mtime;
if (state != thumbnail->thumb_state)
g_object_set (thumbnail, "thumb-state", state, NULL);
{
g_object_freeze_notify (G_OBJECT (thumbnail));
g_object_set (thumbnail, "thumb-state", state, NULL);
gimp_thumbnail_reset_info (thumbnail);
g_object_thaw_notify (G_OBJECT (thumbnail));
}
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment