]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Add c:identifier-prefixes to <namespace>
authorJean Pierre Dudey <me@jeandudey.tech>
Sun, 19 Jul 2020 18:32:07 +0000 (13:32 -0500)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 26 Jul 2020 10:29:20 +0000 (12:29 +0200)
c:prefix is deprecated and c:identifier-prefixes should be used.

codegen/valagirwriter.vala

index 80c4b213213c425baf2a372fbe0e7f5ed2a95c6f..90f2836fa1046e6ff91aaf2db2454bba827f112f 100644 (file)
@@ -342,6 +342,7 @@ public class Vala.GIRWriter : CodeVisitor {
                }
                if (cprefix != null) {
                        buffer.append_printf (" c:prefix=\"%s\"", cprefix);
+                       buffer.append_printf (" c:identifier-prefixes=\"%s\"", cprefix);
                }
                buffer.append_printf (">\n");
                indent++;