[vala] girwriter: Fix string annotations



commit 3d3a2ec13e0a23708a33528c4001cf7256af2ab5
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Jan 15 10:09:40 2011 +0100

    girwriter: Fix string annotations

 codegen/valagirwriter.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index da7911a..394af03 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]