From 732911c70359e6ed13a9fd41677cc345f9d9adab Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Tue, 7 Dec 2010 00:07:08 +0100 Subject: [PATCH] Don't emit shadowed methods into the typelib Ignore shadowed methods when parsing the GIR. --- girparser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/girparser.c b/girparser.c index 0b0583929..03ab6d2e6 100644 --- a/girparser.c +++ b/girparser.c @@ -688,12 +688,15 @@ introspectable_prelude (GMarkupParseContext *context, ParseState new_state) { const gchar *introspectable_arg; + const gchar *shadowed_by; gboolean introspectable; g_assert (ctx->state != STATE_PASSTHROUGH); introspectable_arg = find_attribute ("introspectable", attribute_names, attribute_values); - introspectable = !(introspectable_arg && atoi (introspectable_arg) == 0); + shadowed_by = find_attribute ("shadowed-by", attribute_names, attribute_values); + + introspectable = !(introspectable_arg && atoi (introspectable_arg) == 0) && shadowed_by == NULL; if (introspectable) state_switch (ctx, new_state);