[tracker/tracker-0.10] tracker-evolution: When reporting "Updating Folder" state which one
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-evolution: When reporting "Updating Folder" state which one
- Date: Thu, 26 May 2011 15:25:24 +0000 (UTC)
commit da0b87ec1a9feb9870f1c5d83d675d4ffcc6dbba
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]