[tracker/collation-gconf-locale: 23/28] tracker-store: Add new logs



commit 4c0f84bf272cd385119bee966f4748d3700c3fe8
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Nov 4 17:00:04 2010 +0200

    tracker-store: Add new logs

 src/tracker-store/tracker-locale-change.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-locale-change.c b/src/tracker-store/tracker-locale-change.c
index 119cfae..cbecbd4 100644
--- a/src/tracker-store/tracker-locale-change.c
+++ b/src/tracker-store/tracker-locale-change.c
@@ -59,6 +59,8 @@ tracker_locale_change_process_cb (gpointer user_data)
 	busy_callback = tracker_status_get_callback (notifier,
 	                                             &busy_user_data);
 
+	g_message ("Processing locale change...");
+	/* Reload! This will regenerate indexes with the new locale */
 	tracker_data_manager_reload (busy_callback, busy_user_data);
 
 	if (ctxt->resources) {
@@ -89,6 +91,7 @@ tracker_locale_change_process_idle_cb (gpointer data)
 
 	/* Note: Right now, the passed callback may be called instantly and not
 	 * in an idle. */
+	g_message ("Setting tracker-store as inactive...");
 	tracker_store_set_active (FALSE, tracker_locale_change_process_cb, ctxt);
 
 	return FALSE;
@@ -109,6 +112,7 @@ tracker_locale_notify_cb (TrackerLocaleID id,
 		 * for locale changes, so we may end up waiting to acquire an
 		 * already locked mutex.
 		 */
+		g_message ("Locale change notified, preparing to rebuild indexes...");
 		g_idle_add (tracker_locale_change_process_idle_cb, NULL);
 	}
 }



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