[vala] gidlparser: Support hiding interfaces with metadata



commit 3d050cc6d00d0738f02560b48ad6e9c0f499b4c8
Author: Daniel Hams <daniel hams gmail com>
Date:   Sat Apr 9 17:31:42 2011 +0200

    gidlparser: Support hiding interfaces with metadata
    
    Fixes bug 627298.

 vapigen/valagidlparser.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index a0b775d..cca68a4 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1522,6 +1522,10 @@ 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] == "hidden") {
+						if (eval (nv[1]) == "1") {
+							return;
+						}
 					} else if (nv[0] == "type_cname") {
 						iface.set_type_cname (eval (nv[1]));
 					} else if (nv[0] == "lower_case_csuffix") {



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