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.
This commit is contained in:
committed by
Sven Neumann
parent
5460383b57
commit
c52bcc6dd4
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
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;
|
||||
|
||||
preview_size = gimp_container_view_get_preview_size (editor->view, NULL);
|
||||
if (!size)
|
||||
return;
|
||||
|
||||
gimp_imagefile_create_thumbnail (imagefile, context, NULL, preview_size);
|
||||
if (uri)
|
||||
gimp_thumbs_delete_for_uri (uri);
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user