]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Fix string annotations
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 15 Jan 2011 09:09:40 +0000 (10:09 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 15 Jan 2011 09:09:40 +0000 (10:09 +0100)
codegen/valagirwriter.vala

index da7911ac183dee2bd6ef8bccf50eb8248dac284a..394af0349f2265dda297406b6877ea7e9050c0d6 100644 (file)
@@ -1005,6 +1005,10 @@ public class Vala.GIRWriter : CodeVisitor {
                        string name = camel_case_to_canonical (attr.name);
                        foreach (string arg_name in attr.args.get_keys ()) {
                                string value = attr.args.get (arg_name);
+                               if (value.has_prefix ("\"")) {
+                                       // eval string
+                                       value = attr.get_string (arg_name);
+                               }
 
                                write_indent ();
                                buffer.append_printf ("<annotation key=\"%s.%s\" value=\"%s\"/>\n",