[gthumb/ext] update the metadata when renaming a file
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] update the metadata when renaming a file
- Date: Sun, 23 Aug 2009 09:45:34 +0000 (UTC)
commit 6614ca4e1703b326f1b468971af1ac8fa62b80fb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Aug 23 11:08:36 2009 +0200
update the metadata when renaming a file
gthumb/gth-file-list.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 3759c31..8922cd2 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -917,11 +917,18 @@ gfl_rename_file (GthFileList *file_list,
GtkTreeIter iter;
file_store = (GthFileStore*) gth_file_view_get_model (GTH_FILE_VIEW (file_list->priv->view));
- if (gth_file_store_find (file_store, file, &iter))
+ if (gth_file_store_find (file_store, file, &iter)) {
+ GString *metadata;
+
+ metadata = _gth_file_list_get_metadata (file_list, file_data);
gth_file_store_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_list_update_pane (file_list);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]