[vala/0.40] girwriter: Always use get_gir_name() for TypeSymbols



commit 557376f6ad46e9f3679c8fbc537786869a84092e
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 3657fe211..e9b7718c7 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]