[tracker/gdbus: 33/43] plugins/evolution: Fix status reporting



commit 221e43fcc919657d1d81ebff9c759d26f7ba304e
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Oct 28 11:48:44 2010 +0200

    plugins/evolution: Fix status reporting
    
    This does status reporting per folder. If we'd wanted to do it over
    the entire set of folders, that'd be much harder to get right.

 src/plugins/evolution/tracker-evolution-plugin.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 97c90b6..4a800b2 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -889,7 +889,7 @@ introduce_walk_folders_in_folder (TrackerEvolutionPlugin *self,
 		guint uids_i;
 		guint count = 0;
 		guint ret = SQLITE_OK;
-		gchar *query;
+		gchar *query, *status;
 		sqlite3_stmt *stmt = NULL;
 		GPtrArray *uids = g_ptr_array_new ();
 
@@ -1083,9 +1083,12 @@ introduce_walk_folders_in_folder (TrackerEvolutionPlugin *self,
 				}
 			}
 
+			status = g_strdup_printf ("Processing %s", iter->name);
 			g_object_set (self, "progress",
 			              ((gdouble) uids_i / (gdouble) uids->len),
+			              "status", status,
 			              NULL);
+			g_free (status);
 
 			sqlite3_finalize (stmt);
 			sqlite3_free (query);
@@ -1103,6 +1106,8 @@ introduce_walk_folders_in_folder (TrackerEvolutionPlugin *self,
 		iter = iter->next;
 	}
 
+	g_object_set (self, "progress", 1.0, "status", "Idle", NULL);
+
 	camel_db_close (cdb_r);
 }
 



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