Monitor.vala
[gitlive] / Monitor.vala
index 0ac5f01..dbbc9eb 100644 (file)
@@ -83,7 +83,7 @@ public class Monitor : Object
      */
     public void start()
     {
-        foreach(var i in this.top) {
+        for(int i = 0; i < this.monitors.size ; i++) {
             this.monitor(this.top[i]);
         }
     }
@@ -94,7 +94,7 @@ public class Monitor : Object
     public void stop()
     {
         
-        foreach(int i = 0; i < this.monitors.size ; i++) {
+        for(int i = 0; i < this.monitors.size ; i++) {
             this.monitors[i].cancel();
         } 
         this.monitors = new ArrayList<FileMonitor>(); // clean /destroy/ kill old?
@@ -142,7 +142,7 @@ public class Monitor : Object
             fm.changed.connect( ( fm,  f_orig,  of_orig,  event_type) => {
                     this.onEvent (fm,  f_orig,  of_orig,  event_type ) ;
             });
-            this.monitors.add(fm);
+            this.monitors.add(fm, '', 0);
             // print("ADD path " + depth + ' ' + path);
         }
         // iterate children?