[vala/wip/issue/606: 3/3] WIP girwriter: Set GIR namespace and version to the ones retrieved
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/606: 3/3] WIP girwriter: Set GIR namespace and version to the ones retrieved
- Date: Mon, 29 Apr 2019 12:18:44 +0000 (UTC)
commit 76efc09b20fa625778cc4f4b77aa1540033af5e1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Apr 27 13:20:28 2019 +0200
WIP girwriter: Set GIR namespace and version to the ones retrieved
codegen/valagirwriter.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 4cc2e587a..2cbb97baa 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -201,6 +201,10 @@ public class Vala.GIRWriter : CodeVisitor {
}
}
foreach (var ns in our_namespaces) {
+ if (ns.parent_symbol == context.root) {
+ ns.set_attribute_string ("CCode", "gir_namespace", gir_namespace);
+ ns.set_attribute_string ("CCode", "gir_version", gir_version);
+ }
ns.source_reference.file.gir_namespace = gir_namespace;
ns.source_reference.file.gir_version = gir_version;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]