]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gidl parser: add interface type_cname attribute
authorRyan Lortie <desrt@desrt.ca>
Wed, 30 Mar 2011 10:39:24 +0000 (16:09 +0530)
committerRyan Lortie <desrt@desrt.ca>
Wed, 30 Mar 2011 10:42:04 +0000 (16:12 +0530)
This is how to specify eg. GActionIface vs. GActionInterface

vapigen/valagidlparser.vala

index 4a0f03f39e57228c1e3a56b800b68ffdd30677f6..ca185ee4b6f7f4a312aa03cc3a6d0102ef3a806e 100644 (file)
@@ -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]));
                                        }