From dc9471cf2981e430078de2fcb26852053bff665c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 13:52:23 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.2