[tracker] tracker-miner-fs: Use new API instead of helper API to add indexing tree
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: Use new API instead of helper API to add indexing tree
- Date: Thu, 8 Dec 2011 14:01:12 +0000 (UTC)
commit a49f891f4b1bdbccf8c2dbf0413b21cb20629ebd
Author: Martyn Russell <martyn lanedo com>
Date: Thu Dec 8 14:00:33 2011 +0000
tracker-miner-fs: Use new API instead of helper API to add indexing tree
No actual change to functionality. Just avoid using the old API.
src/miners/fs/tracker-miner-userguides.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-userguides.c b/src/miners/fs/tracker-miner-userguides.c
index a6d7f2d..e8cc580 100644
--- a/src/miners/fs/tracker-miner-userguides.c
+++ b/src/miners/fs/tracker-miner-userguides.c
@@ -115,11 +115,17 @@ miner_userguides_basedir_add_path (TrackerMinerFS *fs,
const gchar *locale)
{
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
+ TrackerIndexingTree *indexing_tree;
GFile *file;
+ indexing_tree = tracker_miner_fs_get_indexing_tree (fs);
+
g_message (" Adding:'%s'", path);
file = g_file_new_for_path (path);
- tracker_miner_fs_directory_add (fs, file, TRUE);
+ tracker_indexing_tree_add (indexing_tree, file,
+ TRACKER_DIRECTORY_FLAG_RECURSE |
+ TRACKER_DIRECTORY_FLAG_MONITOR |
+ TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
g_object_unref (file);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]