[gthumb] emit an update signal after synchronizing with the embedded metadata



commit 827165582b41739dc97a6a6ccc4ee41648007634
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed May 25 22:58:55 2011 +0200

    emit an update signal after synchronizing with the embedded metadata

 extensions/comments/main.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/extensions/comments/main.c b/extensions/comments/main.c
index 3d2bae4..b983c9e 100644
--- a/extensions/comments/main.c
+++ b/extensions/comments/main.c
@@ -193,6 +193,21 @@ comments__read_metadata_ready_cb (GthFileData *file_data,
 			      NULL,
 			      NULL);
 
+		{
+			GFile *parent;
+			GList *list;
+
+			parent = g_file_get_parent (file_data->file);
+			list = g_list_prepend (NULL, file_data->file);
+			gth_monitor_folder_changed (gth_main_get_default_monitor (),
+						    parent,
+						    list,
+						    GTH_MONITOR_EVENT_CHANGED);
+
+			g_list_free (list);
+			g_object_unref (parent);
+		}
+
 		g_free (buffer);
 		g_object_unref (comment_directory);
 		g_object_unref (comment_file);



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