src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:43:07 +0000 (14:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Mar 2015 06:43:07 +0000 (14:43 +0800)
src/Project/Gtk.vala

index 836890e..0bdcf97 100644 (file)
@@ -156,7 +156,7 @@ namespace Project {
                 
                                FileInfo next_file; 
                                while ((next_file = file_enum.next_file(null)) != null) {
-                                       var fn = next_file.get_display_name();
+                                       var fn = next_file.get_display_name();
                                        if (Regex.match_simple("\\.vala$", fn)) {
                                                ret.add(dirname + "/" + fn);
                                                continue;
@@ -168,7 +168,7 @@ namespace Project {
                                                
                                                // if we have a vala file with the same name 
                                                // then do not add it...
-                                               
+                                               var vv = (new Regex("\\.c$").replace(fn, fn.legnth, 0, ".vala");
                                                
                                                ret.add(dirname + "/" + fn);
                                                continue;