[vala/wip/attributes: 42/121] gidlparser: Set const_cname as attribute



commit 6687871738d640988eecf1495212c91558d2739e
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 29 11:45:43 2011 +0200

    gidlparser: Set const_cname as attribute

 vapigen/valagidlparser.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 9adde5a..babd7f3 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -764,7 +764,7 @@ public class Vala.GIdlParser : CodeVisitor {
 								cl.is_immutable = true;
 							}
 						} else if (nv[0] == "const_cname") {
-							cl.const_cname = eval (nv[1]);
+							cl.set_attribute_string ("CCode", "const_cname", eval (nv[1]));
 						} else if (nv[0] == "is_fundamental") {
 							if (eval (nv[1]) == "1") {
 								cl.is_compact = false;
@@ -1110,7 +1110,7 @@ public class Vala.GIdlParser : CodeVisitor {
 						} else if (nv[0] == "deprecated_since") {
 							cl.deprecated_since = eval (nv[1]);
 						} else if (nv[0] == "const_cname") {
-							cl.const_cname = eval (nv[1]);
+							cl.set_attribute_string ("CCode", "const_cname", eval (nv[1]));
 						} else if (nv[0] == "free_function") {
 							free_function = eval (nv[1]);
 						} else if (nv[0] == "ref_function") {



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