Monitor.vala
authorAlan Knowles <alan@akbkhome.com>
Thu, 1 May 2014 14:39:59 +0000 (22:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 1 May 2014 14:39:59 +0000 (22:39 +0800)
Monitor.vala

index 2a09539..4c76659 100644 (file)
@@ -88,7 +88,7 @@ public class Monitor : Object
     public void start()
     {
         for(int i = 0; i < this.monitors.length ; i++) {
-            this.monitor(this.top[i], ( fm,  f_orig,  of_orig,  event_type) => {
+            this.monitor(this.top.index(i), ( fm,  f_orig,  of_orig,  event_type) => {
                 this.onEvent (fm,  f_orig,  of_orig,  event_type ) ;
                 } );
         }
@@ -101,7 +101,7 @@ public class Monitor : Object
     {
         
         for(int i = 0; i < this.monitors.length ; i++) {
-            this.monitors[i].cancel();
+            this.monitors.index(i).cancel();
         } 
         this.monitors = new Array<FileMonitor>(); // clean /destroy/ kill old?
     }