[vala/wip/attributes: 54/119] gidlparser: Drop usage of set_type_id



commit 429aef2b1da5279a2baa4c86645594ae8aac3661
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 29 15:41:21 2011 +0200

    gidlparser: Drop usage of set_type_id

 vapigen/valagidlparser.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 6e1d6c9..9df5465 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -763,7 +763,7 @@ public class Vala.GIdlParser : CodeVisitor {
 								st.has_type_id = false;
 							}
 						} else if (nv[0] == "type_id") {
-							st.set_type_id (eval (nv[1]));
+							st.set_attribute_string ("CCode", "type_id", eval (nv[1]));
 						} else if (nv[0] == "has_copy_function") {
 							if (eval (nv[1]) == "0") {
 								st.has_copy_function = false;
@@ -1445,7 +1445,7 @@ public class Vala.GIdlParser : CodeVisitor {
 					} else if (nv[0] == "deprecated_since") {
 						cl.deprecated_since = eval (nv[1]);
 					} else if (nv[0] == "type_id") {
-						cl.set_type_id (eval (nv[1]));
+						cl.set_attribute_string ("CCode", "type_id", eval (nv[1]));
 					} else if (nv[0] == "abstract") {
 						if (eval (nv[1]) == "1") {
 							cl.is_abstract = true;



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