diff options
Diffstat (limited to 'tools/wixl/wix.vala')
-rw-r--r-- | tools/wixl/wix.vala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala index 205721b..c6897d8 100644 --- a/tools/wixl/wix.vala +++ b/tools/wixl/wix.vala @@ -147,6 +147,20 @@ namespace Wixl { return array; } + public string full_path (WixResolver r) throws GLib.Error { + WixDirectory dir = null; + + if (parent != null && parent is WixDirectory) + dir = this.parent as WixDirectory; + else if (parent != null && parent is WixDirectoryRef) + dir = r.resolve<WixDirectory> (this.parent); + + if (dir != null) + return dir.full_path (r) + "/" + this.Id; + else + return this.Id; + } + public G[] get_elements<G> () { return add_elements<G> ({}); } |