]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Use the correct tag- and element-name for an annotation
authorAndrea Del Signore <sejerpz@gmail.com>
Thu, 3 Nov 2016 22:01:00 +0000 (23:01 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 4 Nov 2016 07:43:21 +0000 (08:43 +0100)
The correct syntax is <attribute name=".." value=".."/>

https://bugzilla.gnome.org/show_bug.cgi?id=769597

codegen/valagirwriter.vala

index 4d361f50d6da1484177cd73129dda3ff3efed086..302f8aee6834e63b90241a0e77ba3f1759fceee5 100644 (file)
@@ -1373,7 +1373,7 @@ public class Vala.GIRWriter : CodeVisitor {
                                }
 
                                write_indent ();
-                               buffer.append_printf ("<annotation key=\"%s.%s\" value=\"%s\"/>\n",
+                               buffer.append_printf ("<attribute name=\"%s.%s\" value=\"%s\"/>\n",
                                        name, camel_case_to_canonical (arg_name), value);
                        }
                }