[tracker/miner-fs-refactor: 81/127] libtracker-miner: Add TrackerIndexingTree::directory-updated
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 81/127] libtracker-miner: Add TrackerIndexingTree::directory-updated
- Date: Wed, 7 Dec 2011 10:43:45 +0000 (UTC)
commit 80bca0d6324ee4355796e5a9c96ae59d9c1bfc89
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Oct 5 15:15:41 2011 +0200
libtracker-miner: Add TrackerIndexingTree::directory-updated
src/libtracker-miner/tracker-indexing-tree.c | 12 ++++++++++++
src/libtracker-miner/tracker-indexing-tree.h | 2 ++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index 7fe55cf..ebeaa4c 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -66,6 +66,7 @@ enum {
enum {
DIRECTORY_ADDED,
DIRECTORY_REMOVED,
+ DIRECTORY_UPDATED,
LAST_SIGNAL
};
@@ -216,6 +217,15 @@ tracker_indexing_tree_class_init (TrackerIndexingTreeClass *klass)
NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_FILE);
+ signals[DIRECTORY_UPDATED] =
+ g_signal_new ("directory-updated",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (TrackerIndexingTreeClass,
+ directory_updated),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1, G_TYPE_FILE);
g_type_class_add_private (object_class,
sizeof (TrackerIndexingTreePrivate));
@@ -379,6 +389,8 @@ tracker_indexing_tree_add (TrackerIndexingTree *tree,
g_free (uri);
data->flags = flags;
+ g_signal_emit (tree, signals[DIRECTORY_UPDATED], 0,
+ directory);
}
return;
}
diff --git a/src/libtracker-miner/tracker-indexing-tree.h b/src/libtracker-miner/tracker-indexing-tree.h
index 25f3aec..f79d8b6 100644
--- a/src/libtracker-miner/tracker-indexing-tree.h
+++ b/src/libtracker-miner/tracker-indexing-tree.h
@@ -55,6 +55,8 @@ struct _TrackerIndexingTreeClass
GFile *directory);
void (* directory_removed) (TrackerIndexingTree *indexing_tree,
GFile *directory);
+ void (* directory_updated) (TrackerIndexingTree *indexing_tree,
+ GFile *directory);
};
GType tracker_indexing_tree_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]