summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorDaniel Hams <daniel.hams@gmail.com>2011-04-09 17:31:42 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-04-09 17:32:58 +0200
commit3d050cc6d00d0738f02560b48ad6e9c0f499b4c8 (patch)
treef5fc2c74aa177a8c99b997656725a07c129e05b9 /vapigen
parent2d45d82676ea741c56c7f681a5ac792d1767ac0c (diff)
downloadvala-3d050cc6d00d0738f02560b48ad6e9c0f499b4c8.tar.gz
gidlparser: Support hiding interfaces with metadata
Fixes bug 627298.
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index a0b775def..cca68a4f6 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") {