[tracker/drop-inotify] libtracker-miner, GIO monitors: comment for the CHANGES_DONE_HINT signal



commit cc7d58153512ca8f1e05870f34a90bf6fcab0f4e
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Jun 29 17:47:39 2010 +0200

    libtracker-miner, GIO monitors: comment for the CHANGES_DONE_HINT signal

 src/libtracker-miner/tracker-monitor.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 7f68e7f..4c510eb 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1553,6 +1553,15 @@ monitor_event_cb (GFileMonitor	    *file_monitor,
 		break;
 
 	case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
+		/* Note: the general case is that this event is the last
+		 * one after a series of EVENT_CHANGED ones. It may be the
+		 * case that after this one, an ATTRIBUTE_CHANGED one is
+		 * issued, as when downloading a file with wget, where
+		 * mtime of the file is modified. But this last case is
+		 * quite specific, so we will anyway signal the event
+		 * right away instead of adding it to the HT.
+		 */
+
 		event_data = g_hash_table_lookup (monitor->private->event_pairs, file);
 
 		if (event_data) {



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