[tracker/wip/miner-fs-refactor: 41/51] libtracker-miner: Add TrackerFileNotifier::file-moved signal



commit c7272902ecb41aeb35baed20508b6e2a057208fc
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Sep 29 15:48:59 2011 +0200

    libtracker-miner: Add TrackerFileNotifier::file-moved signal

 src/libtracker-miner/tracker-file-notifier.c |   10 ++++++++++
 src/libtracker-miner/tracker-marshal.list    |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 3f54891..d88c021 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -604,6 +604,16 @@ tracker_file_notifier_class_init (TrackerFileNotifierClass *klass)
 		              g_cclosure_marshal_VOID__OBJECT,
 		              G_TYPE_NONE,
 		              1, G_TYPE_FILE);
+	signals[FILE_MOVED] =
+		g_signal_new ("file-moved",
+		              G_TYPE_FROM_CLASS (klass),
+		              G_SIGNAL_RUN_LAST,
+		              G_STRUCT_OFFSET (TrackerFileNotifierClass,
+					       file_moved),
+			      NULL, NULL,
+		              tracker_marshal_VOID__OBJECT_OBJECT,
+		              G_TYPE_NONE,
+		              2, G_TYPE_FILE, G_TYPE_FILE);
 
 	g_object_class_install_property (object_class,
 	                                 PROP_INDEXING_TREE,
diff --git a/src/libtracker-miner/tracker-marshal.list b/src/libtracker-miner/tracker-marshal.list
index 1c44e76..785edc5 100644
--- a/src/libtracker-miner/tracker-marshal.list
+++ b/src/libtracker-miner/tracker-marshal.list
@@ -1,4 +1,5 @@
 VOID:OBJECT,BOOLEAN
+VOID:OBJECT,OBJECT
 VOID:OBJECT,OBJECT,BOOLEAN,BOOLEAN
 VOID:OBJECT,POINTER,UINT,UINT,UINT,UINT
 VOID:DOUBLE,UINT,UINT,UINT,UINT



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