projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45edd6e
)
src/Project/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:45:01 +0000
(13:45 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 26 May 2015 05:45:01 +0000
(13:45 +0800)
src/Project/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/Project/Gtk.vala
b/src/Project/Gtk.vala
index
5f06313
..
e6c3256
100644
(file)
--- a/
src/Project/Gtk.vala
+++ b/
src/Project/Gtk.vala
@@
-214,8
+214,8
@@
namespace Project {
var ret = new Gee.ArrayList<string>();
var ret = new Gee.ArrayList<string>();
- for (var i = 0; i <
c
files.size; i ++) {
- var fn =
c
files.get(i);
+ for (var i = 0; i <
all
files.size; i ++) {
+ var fn =
all
files.get(i);
if (Regex.match_simple("\\.vala$", fn)) {
ret.add( fn);
continue;
if (Regex.match_simple("\\.vala$", fn)) {
ret.add( fn);
continue;
@@
-239,7
+239,7
@@
namespace Project {
}
}
- if (
ret
.index_of( vv) > -1) {
+ if (
allfiles
.index_of( vv) > -1) {
continue;
}
// add the 'c' file..
continue;
}
// add the 'c' file..
@@
-255,20
+255,25
@@
namespace Project {
public Gee.ArrayList<string> filesForOpen(string in_path)
{
public Gee.ArrayList<string> filesForOpen(string in_path)
{
- var allfile = this.fileAll();
+ var allfile
s
= this.fileAll();
var ret = new Gee.ArrayList<string>();
var ret = new Gee.ArrayList<string>();
- for (var i = 0; i <
c
files.size; i ++) {
+ for (var i = 0; i <
all
files.size; i ++) {
var fn = cfiles.get(i);
var fn = cfiles.get(i);
+ if (Regex.match_simple("\\.vala\\.c$", fn)) {
+ continue;
+ }
+ if (Regex.match_simple("\\.bjs\\.c$", fn)) {
+ continue;
+ }
+
if (Regex.match_simple("\\.vala$", fn)) {
ret.add( fn);
continue;
}
// vala.c -- ignore..
if (Regex.match_simple("\\.vala$", fn)) {
ret.add( fn);
continue;
}
// vala.c -- ignore..
- if (Regex.match_simple("\\.vala\\.c$", fn)) {
- continue;
- }
+
// not a c file...
if (!Regex.match_simple("\\.c$", fn)) {
continue;
// not a c file...
if (!Regex.match_simple("\\.c$", fn)) {
continue;