[gthumb] fixed regression: update thumbnails when file changes on disk
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed regression: update thumbnails when file changes on disk
- Date: Wed, 31 Mar 2010 08:23:45 +0000 (UTC)
commit f0739553441a04bf880006961c709de87bead983
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Mar 31 10:15:32 2010 +0200
fixed regression: update thumbnails when file changes on disk
gthumb/gth-file-list.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index f84ab5e..8f0aebe 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -946,8 +946,17 @@ gfl_update_files (GthFileList *file_list,
file_store = (GthFileStore*) gth_file_view_get_model (GTH_FILE_VIEW (file_list->priv->view));
for (scan = files; scan; scan = scan->next) {
GthFileData *file_data = scan->data;
+ ThumbData *thumb_data;
GtkTreeIter iter;
+ thumb_data = g_hash_table_lookup (file_list->priv->thumb_data, file_data->file);
+ if (thumb_data == NULL)
+ continue;
+
+ thumb_data->error = FALSE;
+ thumb_data->thumb_loaded = FALSE;
+ thumb_data->thumb_created = FALSE;
+
if (gth_file_store_find (file_store, file_data->file, &iter)) {
GString *metadata;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]