summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-05-31 21:28:33 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-05-31 21:28:33 +0000
commit7a8c0642f5cc6e80e873f239984beeab7b9ba6ff (patch)
tree3253b638aafd973880c51593377fc2e263ac1566 /giscanner/girparser.py
parentf8a4fe568bb27fe16b5b081464159549c7e10a57 (diff)
downloadgobject-introspection-7a8c0642f5cc6e80e873f239984beeab7b9ba6ff.tar.gz
Improve error reporting when trying to quote None. Do not print warnings
2008-05-31 Johan Dahlin <jdahlin@async.com.br> * giscanner/xmlwriter.py: Improve error reporting when trying to quote None. * giscanner/girparser.py: Do not print warnings when including more complete .gir files * giscanner/girwriter.py: Do not require a name for parameters, add a todo for singletons * giscanner/glibtransformer.py: Refactor the way structs are done, add a couple of hacks to allow us to get further. * giscanner/transformer.py: Add enough hacks so cairo, atk and pango.gir can be parsed properly * gobject-introspection-1.0.pc.in: Export girdir, so we can access gobject-2.0.gir from outside svn path=/trunk/; revision=280
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 5c37eb63..7858342f 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -48,6 +48,10 @@ class GIRParser(object):
for child in ns.getchildren():
if child.tag == _corens('class'):
self._parse_object(child)
+ elif child.tag in [_corens('callback'),
+ _corens('function'),
+ _corens('record')]:
+ continue
else:
print 'PARSER: Unhandled %s' % (child.tag,)