From: Alan Knowles Date: Tue, 26 May 2015 05:52:23 +0000 (+0800) Subject: src/Project/Gtk.vala X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=dc9471cf2981e430078de2fcb26852053bff665c src/Project/Gtk.vala --- diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 06fc80c67..ed0d89051 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -210,7 +210,7 @@ namespace Project { public Gee.ArrayList filesForCompile(string in_path) { - var allfiles = this.filesAll(); + var allfiles = this.filesAll(in_path); var ret = new Gee.ArrayList(); @@ -257,12 +257,12 @@ namespace Project { public Gee.ArrayList filesForOpen(string in_path) { - var allfiles = this.filesAll(); + var allfiles = this.filesAll(in_path); var ret = new Gee.ArrayList(); for (var i = 0; i < allfiles.size; i ++) { - var fn = cfiles.get(i); + var fn = allfiles.get(i); try { if (Regex.match_simple("\\.vala\\.c$", fn)) { @@ -274,7 +274,7 @@ namespace Project { } if (Regex.match_simple("\\.vala$", fn)) { - var vv = (new Regex("\\.vala$")).replace( fn, fn, 0, ".bjs"); + var vv = (new Regex("\\.vala$")).replace( fn, fn.length, 0, ".bjs"); if (allfiles.index_of( vv) > -1) { continue; } @@ -287,7 +287,7 @@ namespace Project { // not a c file... if (Regex.match_simple("\\.c$", fn)) { - var vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala"); + var vv = (new Regex("\\.c$")).replace( fn, fn.length, 0, ".vala"); if (allfiles.index_of( vv) > -1) { continue; }