summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-31 09:36:07 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-01 19:37:21 -0500
commit9c0bd59b021e163eae191db95ce6beeb389cbd6f (patch)
tree1e6030b1baebe66c68877b038ca3444a12a50d96 /girepository/girparser.c
parent93cd5b208b19e7c532972b85a457518082e1fc2b (diff)
downloadgobject-introspection-9c0bd59b021e163eae191db95ce6beeb389cbd6f.tar.gz
girparser: Serialize and read back the instance_parameter
g-ir-doc-tool wants to use the instance parameter to read docs and the parameter name, so it needs to be shuttled through the GIR. https://bugzilla.gnome.org/show_bug.cgi?id=693040
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index d1bc81f5..5aaa6dd0 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -2831,6 +2831,11 @@ start_element_handler (GMarkupParseContext *context,
attribute_names, attribute_values,
ctx, error))
goto out;
+ else if (strcmp (element_name, "instance-parameter") == 0)
+ {
+ state_switch (ctx, STATE_PASSTHROUGH);
+ goto out;
+ }
else if (strcmp (element_name, "c:include") == 0)
{
state_switch (ctx, STATE_C_INCLUDE);