From cd45a89a662f498a625b7fd12985d11b62b68a1a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 27 Apr 2015 18:17:20 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 1b31071cc..234c12af8 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -272,7 +272,23 @@ namespace Project { return path; } - + public string[] vapidirs() + { + string[] ret = {}; + for(var i =0; i< this.sources.size; i++) { + + var path = this.resolve_path( + this.resolve_path_combine_path(this.firstPath(),this.sources.get(i))); + + if (Path.get_basename (path) == "vapi") { + print("Adding VAPIDIR: %s\n", path); + ret += path; + } + + } + return ret; + + } } @@ -310,18 +326,7 @@ namespace Project { } - public string[] vapidirs() - { - string[] ret = {}; - for(var i =0; i< this.sources.size; i++) { - if (Path.get_basename (this.sources.get(i)) == "vapi") { - ret[] += files.get(i); - } - - } - return ret; - - } + public Gee.ArrayList readArray(Json.Array ar) { -- 2.39.2