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

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