[vala/staging] girwriter: Always use get_gir_name() for TypeSymbols
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] girwriter: Always use get_gir_name() for TypeSymbols
- Date: Wed, 27 Feb 2019 14:51:53 +0000 (UTC)
commit 194195123f458e9f9502acc6bb835c0717b6fee6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Feb 27 15:45:13 2019 +0100
girwriter: Always use get_gir_name() for TypeSymbols
codegen/valagirwriter.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index a1a82cd7b..4373ec8bb 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -370,7 +370,7 @@ public class Vala.GIRWriter : CodeVisitor {
write_indent ();
buffer.append_printf ("<record name=\"%s\"", gtype_struct_name);
write_ctype_attributes (cl, "Class");
- buffer.append_printf (" glib:is-gtype-struct-for=\"%s\"", cl.name);
+ buffer.append_printf (" glib:is-gtype-struct-for=\"%s\"", get_gir_name (cl));
buffer.append_printf (">\n");
indent++;
@@ -510,7 +510,7 @@ public class Vala.GIRWriter : CodeVisitor {
return;
}
- string gtype_struct_name = iface.name + "Iface";
+ string gtype_struct_name = get_gir_name (iface) + "Iface";
write_indent ();
buffer.append_printf ("<interface name=\"%s\"", get_gir_name (iface));
@@ -541,7 +541,7 @@ public class Vala.GIRWriter : CodeVisitor {
write_indent ();
buffer.append_printf ("<record name=\"%s\"", gtype_struct_name);
write_ctype_attributes (iface, "Iface");
- buffer.append_printf (" glib:is-gtype-struct-for=\"%s\"", iface.name);
+ buffer.append_printf (" glib:is-gtype-struct-for=\"%s\"", get_gir_name (iface));
buffer.append_printf (">\n");
indent++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]