[gthumb] Bug 586610 – transient *.thumb.jpg files visibles in thumbnail view
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Bug 586610 – transient *.thumb.jpg files visibles in thumbnail view
- Date: Tue, 23 Jun 2009 11:04:46 -0400 (EDT)
commit 343488c00cd34874da6139f98ed4812791b760c4
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue Jun 23 11:03:59 2009 -0400
Bug 586610 â?? transient *.thumb.jpg files visibles in thumbnail view
libgthumb/file-utils.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index a545554..c6e8314 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -58,6 +58,7 @@
#include "typedefs.h"
#include "gth-exif-utils.h"
#include "gth-sort-utils.h"
+#include "gth-monitor.h"
#define GNOME_DESKTOP_USE_UNSTABLE_API
#include <libgnomeui/gnome-desktop-thumbnail.h>
@@ -2187,6 +2188,7 @@ get_pixbuf_using_external_converter (FileData *file,
gboolean is_raw;
gboolean is_hdr;
gboolean is_thumbnail;
+ gboolean pause_monitor = FALSE;
if (! file_data_has_local_path (file, NULL))
return NULL;
@@ -2239,6 +2241,9 @@ get_pixbuf_using_external_converter (FileData *file,
char *thumb_command;
/* Check for an embedded thumbnail first */
+ gth_monitor_pause ();
+ pause_monitor = TRUE;
+
thumb_command = g_strdup_printf ("dcraw -e %s", local_file_esc);
g_spawn_command_line_sync (thumb_command, NULL, NULL, NULL, NULL);
g_free (thumb_command);
@@ -2261,6 +2266,9 @@ get_pixbuf_using_external_converter (FileData *file,
cache_file = g_strdup (ppm_thumbnail);
}
else {
+ gth_monitor_resume ();
+ pause_monitor = FALSE;
+
/* No embedded thumbnail. Read the whole file. */
/* Add -h option to speed up thumbnail generation. */
command = g_strdup_printf ("dcraw -w -c -h %s > %s",
@@ -2314,6 +2322,9 @@ get_pixbuf_using_external_converter (FileData *file,
if (is_thumbnail)
file_unlink (cache_file);
+ if (pause_monitor)
+ gth_monitor_resume ();
+
g_free (cache_file);
g_free (cache_file_esc);
g_free (local_file_esc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]