Commit e16dce9a authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Use interned GFiles in TrackerIndexingTree signals

This is so callers may rely on equality instead of g_file_equal(), fixes
cancel-crawling-on-unmount in TrackerFileNotifier.
parent b32faade
......@@ -1008,7 +1008,7 @@ indexing_tree_directory_removed (TrackerIndexingTree *indexing_tree,
TrackerDirectoryFlags flags;
/* Flags are still valid at the moment of deletion */
tracker_indexing_tree_get_root (indexing_tree, directory, &flags);
directory = tracker_indexing_tree_get_root (indexing_tree, directory, &flags);
/* If the folder was being ignored, index/crawl it from scratch */
if (flags & TRACKER_DIRECTORY_FLAG_IGNORE) {
......
......@@ -392,7 +392,7 @@ tracker_indexing_tree_add (TrackerIndexingTree *tree,
data->flags = flags;
g_signal_emit (tree, signals[DIRECTORY_UPDATED], 0,
directory);
data->file);
}
return;
}
......@@ -448,16 +448,17 @@ tracker_indexing_tree_remove (TrackerIndexingTree *tree,
return;
}
data = node->data;
if (!node->parent) {
/* Node is the config tree
* root, mark as shallow again
*/
data = node->data;
data->shallow = TRUE;
return;
}
g_signal_emit (tree, signals[DIRECTORY_REMOVED], 0, directory);
g_signal_emit (tree, signals[DIRECTORY_REMOVED], 0, data->file);
parent = node->parent;
g_node_unlink (node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment