summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-16 01:40:29 +0000
committerColin Walters <walters@src.gnome.org>2008-10-16 01:40:29 +0000
commitc3d732b2c2393a14ed9bda1e5a2e17745c94ca54 (patch)
tree3dd71bc56c4defb6d7f1a0ef7597922ab8dd17bb /giscanner/girparser.py
parent1f1ca54b3a41713b9328f0824f59d18c3ef7ffd2 (diff)
downloadgobject-introspection-c3d732b2c2393a14ed9bda1e5a2e17745c94ca54.tar.gz
Merge branch 'bug556331-includecleanup'
svn path=/trunk/; revision=724
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 7fca083c..5649e036 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -22,7 +22,7 @@ from xml.etree.cElementTree import parse
from .ast import (Alias, Array, Callback, Constant, Enum, Function, Field,
Namespace, Parameter, Property, Return, Union, Struct, Type,
- Varargs)
+ Varargs, Include)
from .glibast import (GLibEnum, GLibEnumMember, GLibFlags,
GLibInterface, GLibObject, GLibBoxedStruct,
GLibBoxedUnion, GLibBoxedOther)
@@ -85,7 +85,9 @@ class GIRParser(object):
assert root.tag == _corens('repository')
for node in root.getchildren():
if node.tag == _corens('include'):
- self._includes.add((node.attrib['name']))
+ include = Include(node.attrib['name'],
+ node.attrib['version'])
+ self._includes.add(include)
ns = root.find(_corens('namespace'))
assert ns is not None
self._namespace = Namespace(ns.attrib['name'], ns.attrib['version'])