[tracker] libtracker-miner: Add missing ::move-file signal



commit bbcfd4753837cef98d95c744b47eece35d0d6b58
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 5 23:36:04 2017 +0200

    libtracker-miner: Add missing ::move-file signal
    
    Fixes handling of moved files, since the subclass vmethod wouldn't
    be triggered.

 src/libtracker-miner/tracker-miner-fs.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 553d6c0..7f99adc 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -561,6 +561,15 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
                              G_TYPE_STRING,
                              1, G_TYPE_FILE);
 
+       signals[MOVE_FILE] =
+               g_signal_new ("move-file",
+                             G_TYPE_FROM_CLASS (object_class),
+                             G_SIGNAL_RUN_LAST,
+                             G_STRUCT_OFFSET (TrackerMinerFSClass, move_file),
+                             NULL, NULL, NULL,
+                             G_TYPE_STRING,
+                             3, G_TYPE_FILE, G_TYPE_FILE, G_TYPE_BOOLEAN);
+
        g_type_class_add_private (object_class, sizeof (TrackerMinerFSPrivate));
 
        quark_file_iri = g_quark_from_static_string ("tracker-miner-file-iri");


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