summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girparser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 0b058392..03ab6d2e 100644
--- a/girepository/girparser.c
+++ b/girepository/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);