[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: Sun, 28 Apr 2019 17:53:03 +0000 (UTC)
commit 44bc05ec65c52cececec44725bcb170f9db30e0f
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 e0dedb057..462fa01ad 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]