[tracker/drop-inotify] libtracker-miner: Fix item-changed signal when using GIO



commit 0d3e17ba868c16fdd33ddb2348d513d58d35f3be
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Jun 29 16:50:17 2010 +0200

    libtracker-miner: Fix item-changed signal when using GIO

 src/libtracker-miner/tracker-monitor.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index bb641f5..7f68e7f 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1530,7 +1530,7 @@ monitor_event_cb (GFileMonitor	    *file_monitor,
 	switch (event_type) {
 	case G_FILE_MONITOR_EVENT_CHANGED:
 		if (!monitor->private->use_changed_event) {
-			/* Do nothing */
+			/* Do nothing (using CHANGES_DONE_HINT) */
 			break;
 		}
 
@@ -1558,6 +1558,10 @@ monitor_event_cb (GFileMonitor	    *file_monitor,
 		if (event_data) {
 			emit_signal_for_event (monitor, event_data);
 			g_hash_table_remove (monitor->private->event_pairs, file);
+		} else {
+			event_data = event_data_new (file, event_type);
+			emit_signal_for_event (monitor, event_data);
+			event_data_free (event_data);
 		}
 
 		break;



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