[tracker/evo-master-cleanup: 7/7] tracker-evolution: When reporting "Updating Folder" state which one



commit cc97fd1904a26b6d62d0bf9ebdb87eb27a739eed
Author: Martyn Russell <martyn lanedo com>
Date:   Thu May 26 15:24:16 2011 +0100

    tracker-evolution: When reporting "Updating Folder" state which one
    
    tracker-control wasn't useful without this since it could be on any folder

 src/plugins/evolution/tracker-evolution-plugin.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 3ddcb96..0fe4aeb 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -679,6 +679,8 @@ on_folder_summary_changed (CamelFolder           *folder,
 		if (linfo && uid) {
 			gchar *uri;
 			gchar *size;
+			gchar *str;
+			const gchar *folder_name;
 			TrackerSparqlBuilder *sparql;
 
 			subject = camel_message_info_subject (linfo);
@@ -771,11 +773,22 @@ on_folder_summary_changed (CamelFolder           *folder,
 			/* FIXME: Actually report accurate percentages and don't spam */
 			g_debug ("Tracker plugin setting progress to '%2.2f' and status to 'Updating an E-mail'",
 			         (gdouble) i / merged->len);
+
+			folder_name = camel_folder_get_name (folder);
+
+			if (folder_name && *folder_name) {
+				str = g_strdup_printf ("Updating E-mails for %s",
+				                       folder_name);
+			} else {
+				str = g_strdup ("Updating E-mails");
+			}
+
 			g_object_set (info->self, "progress",
 			              (gdouble) i / merged->len,
-			              "status", "Updating E-mails",
+			              "status", str,
 			              NULL);
 
+			g_free (str);
 			g_object_unref (sparql);
 
 			g_free (size);



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