[gthumb/ext] update the file metadata column as well
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] update the file metadata column as well
- Date: Sun, 23 Aug 2009 08:59:04 +0000 (UTC)
commit 7866dce9cd7e4a012b5d5934d021eaaeb8118521
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Aug 23 10:57:12 2009 +0200
update the file metadata column as well
gthumb/gth-file-list.c | 9 ++++++++-
gthumb/gth-file-store.c | 1 -
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 2db2c24..3759c31 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -878,11 +878,18 @@ gfl_update_files (GthFileList *file_list,
GthFileData *file_data = scan->data;
GtkTreeIter iter;
- if (gth_file_store_find (file_store, file_data->file, &iter))
+ if (gth_file_store_find (file_store, file_data->file, &iter)) {
+ GString *metadata;
+
+ metadata = _gth_file_list_get_metadata (file_list, file_data);
gth_file_store_queue_set (file_store,
&iter,
GTH_FILE_STORE_FILE_DATA_COLUMN, file_data,
+ GTH_FILE_STORE_METADATA_COLUMN, metadata->str,
-1);
+
+ g_string_free (metadata, TRUE);
+ }
}
gth_file_store_exec_set (file_store);
_gth_file_list_update_pane (file_list);
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 2f7421a..e8c932d 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -124,7 +124,6 @@ _gth_file_row_set_metadata (GthFileRow *row,
return;
g_free (row->metadata);
- row->metadata = NULL;
row->metadata = g_strdup (metadata);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]