From 1ec23755b3db4e9c112537320acf3771eee0fd1a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 10 May 2014 18:47:22 +0800 Subject: [PATCH] Monitor.vala --- Monitor.vala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Monitor.vala b/Monitor.vala index f239d968..010af4e1 100644 --- a/Monitor.vala +++ b/Monitor.vala @@ -37,6 +37,7 @@ public class MonitorNamePathDir { this.name = name; this.path = path; this.dir = dir; + this.action = "?'; } } @@ -298,26 +299,33 @@ public class Monitor : Object switch(event_type) { case FileMonitorEvent.CHANGED: + src.action = "changed"; this.onChanged(src); return; // ingore thise?? -wait for changes_done_htin? case FileMonitorEvent.CHANGES_DONE_HINT: + src.action = "changed"; this.onChangesDoneHint(src); return; case FileMonitorEvent.DELETED: + src.action = "rm"; this.onDeleted(src); return; case FileMonitorEvent.CREATED: + src.action = "created"; this.onCreated(src); return; case FileMonitorEvent.ATTRIBUTE_CHANGED: // eg. chmod/chatt + src.action = "attrib"; this.onAttributeChanged(src); return; case FileMonitorEvent.MOVED: // eg. chmod/chatt + src.action = "moved"; + dest.action = "moved"; this.onMoved(src,dest); return; -- 2.39.2