projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1138bb
)
Monitor.vala
author
Alan Knowles
<alan@akbkhome.com>
Sat, 10 May 2014 10:47:22 +0000
(18:47 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 10 May 2014 10:47:22 +0000
(18:47 +0800)
Monitor.vala
patch
|
blob
|
history
diff --git
a/Monitor.vala
b/Monitor.vala
index
f239d96
..
010af4e
100644
(file)
--- a/
Monitor.vala
+++ b/
Monitor.vala
@@
-37,6
+37,7
@@
public class MonitorNamePathDir {
this.name = name;
this.path = path;
this.dir = dir;
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:
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:
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:
this.onChangesDoneHint(src);
return;
case FileMonitorEvent.DELETED:
+ src.action = "rm";
this.onDeleted(src);
return;
case FileMonitorEvent.CREATED:
this.onDeleted(src);
return;
case FileMonitorEvent.CREATED:
+ src.action = "created";
this.onCreated(src);
return;
case FileMonitorEvent.ATTRIBUTE_CHANGED: // eg. chmod/chatt
this.onCreated(src);
return;
case FileMonitorEvent.ATTRIBUTE_CHANGED: // eg. chmod/chatt
+ src.action = "attrib";
this.onAttributeChanged(src);
return;
case FileMonitorEvent.MOVED: // eg. chmod/chatt
this.onAttributeChanged(src);
return;
case FileMonitorEvent.MOVED: // eg. chmod/chatt
+ src.action = "moved";
+ dest.action = "moved";
this.onMoved(src,dest);
return;
this.onMoved(src,dest);
return;