[tracker/miner-userguide-master: 10/14] tracker-miner-fs: Detect locale changes properly in userguides miner
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-userguide-master: 10/14] tracker-miner-fs: Detect locale changes properly in userguides miner
- Date: Fri, 25 Nov 2011 14:30:57 +0000 (UTC)
commit 8d77d06cedf16a4a7510695a94f3308eea28eba0
Author: Martyn Russell <martyn lanedo com>
Date: Thu Nov 24 10:50:24 2011 +0000
tracker-miner-fs: Detect locale changes properly in userguides miner
src/miners/fs/tracker-main.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index d54cf72..151c275 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -873,19 +873,23 @@ main (gint argc, gchar *argv[])
if (!do_mtime_checking)
g_debug ("Forcing mtime check in applications miner as locale change was detected");
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), TRUE);
+ } else {
+ tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), do_mtime_checking);
+ }
+
#ifdef HAVE_MAEMO
+ /* If a locale change was detected, always do mtime checks */
+ if (tracker_miner_userguides_detect_locale_changed (miner_userguides)) {
if (!do_mtime_checking)
g_debug ("Forcing mtime check in userguides miner as locale change was detected");
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), TRUE);
-#endif /* HAVE_MAEMO */
} else {
- tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_applications), do_mtime_checking);
-#ifdef HAVE_MAEMO
tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), do_mtime_checking);
#endif /* HAVE_MAEMO */
}
+
g_signal_connect (miner_applications, "finished",
G_CALLBACK (miner_finished_cb),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]