From: Alan Knowles Date: Thu, 1 May 2014 14:39:59 +0000 (+0800) Subject: Monitor.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=9190093e23a2a7f271ac68f6da149d1a6d5c77a7 Monitor.vala --- diff --git a/Monitor.vala b/Monitor.vala index 2a095396..4c76659e 100644 --- a/Monitor.vala +++ b/Monitor.vala @@ -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(); // clean /destroy/ kill old? }