summaryrefslogtreecommitdiff
path: root/gobject-introspection
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-10-19 14:05:37 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-10-19 14:05:37 +0000
commit3a87a25c47fa1f375d2cd0e31acbe99cf7bf0ede (patch)
treebdecb4a4ffd597968e15c02f67f46487ebd696f7 /gobject-introspection
parent65c666cfe78f61f136c50cf60128e60179a2c5d1 (diff)
downloadvala-3a87a25c47fa1f375d2cd0e31acbe99cf7bf0ede.tar.gz
fix state changes in `requires' elements support flags and use name
2007-10-19 Juerg Billeter <j@bitron.ch> * gobject-introspection/gidlparser.c: fix state changes in `requires' elements * vapigen/valagidlparser.vala: support flags and use name attribute of object elements svn path=/trunk/; revision=657
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)