summaryrefslogtreecommitdiff
path: root/gobject-introspection
diff options
context:
space:
mode:
Diffstat (limited to 'gobject-introspection')
-rw-r--r--gobject-introspection/gidlparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject-introspection/gidlparser.c b/gobject-introspection/gidlparser.c
index b774bb984..adc0723b3 100644
--- a/gobject-introspection/gidlparser.c
+++ b/gobject-introspection/gidlparser.c
@@ -1945,7 +1945,8 @@ end_element_handler (GMarkupParseContext *context,
ctx->state = STATE_OBJECT;
break;
case STATE_REQUIRES:
- ctx->state = STATE_INTERFACE;
+ if (strcmp (element_name, "requires") == 0)
+ ctx->state = STATE_INTERFACE;
break;
case STATE_PARAMETERS:
if (strcmp (element_name, "parameters") == 0)