[gthumb] notify the file change after deleting the metadata



commit 025588b34321a6ed0f6f5ac6705856e017c9065f
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun May 29 16:56:42 2011 +0200

    notify the file change after deleting the metadata

 .../edit_metadata/gth-delete-metadata-task.c       |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/extensions/edit_metadata/gth-delete-metadata-task.c b/extensions/edit_metadata/gth-delete-metadata-task.c
index 74e5536..67e260f 100644
--- a/extensions/edit_metadata/gth-delete-metadata-task.c
+++ b/extensions/edit_metadata/gth-delete-metadata-task.c
@@ -72,6 +72,23 @@ write_file_ready_cb (void     **buffer,
 		return;
 	}
 
+	{
+		GFile *file;
+		GFile *parent;
+		GList *list;
+
+		file = self->priv->current->data;
+		parent = g_file_get_parent (file);
+		list = g_list_prepend (NULL, file);
+		gth_monitor_folder_changed (gth_main_get_default_monitor (),
+					    parent,
+					    list,
+					    GTH_MONITOR_EVENT_CHANGED);
+
+		g_list_free (list);
+		g_object_unref (parent);
+	}
+
 	transform_next_file (self);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]