[tracker] libtracker-miner: Always report *some* progress when crawling



commit fe2ac78dc7173969eec0fe1c1cdb64ed3266fcd9
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Mar 30 14:40:32 2010 +0100

    libtracker-miner: Always report *some* progress when crawling

 src/libtracker-miner/tracker-miner-fs.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index eeacdfe..94320de 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2560,7 +2560,11 @@ crawl_directories_cb (gpointer user_data)
 
 	g_message ("%s", str);
 
-	g_object_set (fs, "status", str, NULL);
+	/* Always set the progress here to at least 1% */
+	g_object_set (fs,
+	              "progress", 0.01,
+	              "status", str,
+	              NULL);
 	g_free (str);
 	g_free (path);
 



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