src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Mon, 27 Apr 2015 10:18:24 +0000 (18:18 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 27 Apr 2015 10:18:24 +0000 (18:18 +0800)
src/Project/Gtk.vala

index 234c12a..910366b 100644 (file)
@@ -275,10 +275,11 @@ namespace Project {
                public string[] vapidirs()
                {
                        string[] ret = {};
-                       for(var i =0; i< this.sources.size; i++) {
+                       var sources = this.compilegroups.get("_default_").sources
+                       for(var i =0; i< sources.size; i++) {
                                
                                var path = this.resolve_path(
-                               this.resolve_path_combine_path(this.firstPath(),this.sources.get(i)));
+                               this.resolve_path_combine_path(this.firstPath(),sources.get(i)));
                                
                                if (Path.get_basename (path) == "vapi") {
                                        print("Adding VAPIDIR: %s\n", path);