[tracker] libtracker-miner: Handle extra GFileMonitorEvent values
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Handle extra GFileMonitorEvent values
- Date: Sun, 20 Nov 2016 14:57:57 +0000 (UTC)
commit 28b6ca6afc3a120da48800dd1f39661836b3e0a5
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 19 23:39:20 2016 +0100
libtracker-miner: Handle extra GFileMonitorEvent values
We don't use G_FILE_MONITOR_WATCH_MOVES as it doesn't add much to us,
so make the extra derived event types a no-op.
src/libtracker-miner/tracker-monitor.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 84d3614..5a44fe1 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -666,6 +666,10 @@ monitor_event_to_string (GFileMonitorEvent event_type)
return "G_FILE_MONITOR_EVENT_UNMOUNTED";
case G_FILE_MONITOR_EVENT_MOVED:
return "G_FILE_MONITOR_EVENT_MOVED";
+ case G_FILE_MONITOR_EVENT_RENAMED:
+ case G_FILE_MONITOR_EVENT_MOVED_IN:
+ case G_FILE_MONITOR_EVENT_MOVED_OUT:
+ break;
}
return "unknown";
@@ -1334,6 +1338,10 @@ monitor_event_cb (GFileMonitor *file_monitor,
case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
case G_FILE_MONITOR_EVENT_UNMOUNTED:
/* Do nothing */
+ case G_FILE_MONITOR_EVENT_RENAMED:
+ case G_FILE_MONITOR_EVENT_MOVED_IN:
+ case G_FILE_MONITOR_EVENT_MOVED_OUT:
+ /* We don't use G_FILE_MONITOR_WATCH_MOVES */
break;
}
} else {
@@ -1355,6 +1363,10 @@ monitor_event_cb (GFileMonitor *file_monitor,
case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
case G_FILE_MONITOR_EVENT_UNMOUNTED:
/* Do nothing */
+ case G_FILE_MONITOR_EVENT_RENAMED:
+ case G_FILE_MONITOR_EVENT_MOVED_IN:
+ case G_FILE_MONITOR_EVENT_MOVED_OUT:
+ /* We don't use G_FILE_MONITOR_WATCH_MOVES */
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]