[vala] gidl parser: add interface type_cname attribute



commit d48ecc9111369727bf20f3ed7a7ff0b87a8d6193
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 30 16:09:24 2011 +0530

    gidl parser: add interface type_cname attribute
    
    This is how to specify eg. GActionIface vs. GActionInterface

 vapigen/valagidlparser.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 4a0f03f..ca185ee 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1490,6 +1490,8 @@ public class Vala.GIdlParser : CodeVisitor {
 					var nv = attr.split ("=", 2);
 					if (nv[0] == "cheader_filename") {
 						iface.add_cheader_filename (eval (nv[1]));
+					} else if (nv[0] == "type_cname") {
+						iface.set_type_cname (eval (nv[1]));
 					} else if (nv[0] == "lower_case_csuffix") {
 						iface.set_lower_case_csuffix (eval (nv[1]));
 					}



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