summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-04-23 01:32:49 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-23 01:32:49 +0000
commit36a587e0e6dd36bbe4956286b9ab5ec7b925ae0d (patch)
treebd630825a164186032623af6235ffd8afaad7365 /giscanner
parent204aaf88530b238c5f8c3a468f1c1a55e8b3c4e7 (diff)
downloadgobject-introspection-36a587e0e6dd36bbe4956286b9ab5ec7b925ae0d.tar.gz
bitmask->bitfield, c:symbol->c:identifer api->repository
svn path=/trunk/; revision=223
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/girwriter.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 54fa262c..009ba573 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -9,9 +9,9 @@ from .xmlwriter import XMLWriter
class GIRWriter(XMLWriter):
def __init__(self, namespace, nodes):
super(GIRWriter, self).__init__()
- self._write_api(namespace, nodes)
+ self._write_repository(namespace, nodes)
- def _write_api(self, namespace, nodes):
+ def _write_repository(self, namespace, nodes):
attrs = [
('version', '1.0'),
('xmlns', 'http://www.gtk.org/introspection/core/1.0'),
@@ -42,7 +42,7 @@ class GIRWriter(XMLWriter):
def _write_function(self, func, tag_name='function'):
attrs = [('name', func.name),
- ('c:symbol', func.symbol)]
+ ('c:identifier', func.symbol)]
with self.tagcontext(tag_name, attrs):
self._write_return_type(func.retval)
self._write_parameters(func.parameters)
@@ -79,7 +79,7 @@ class GIRWriter(XMLWriter):
attrs.extend([('glib:type-name', enum.type_name),
('glib:get-type', enum.get_type)])
if isinstance(enum, GLibFlags):
- tag_name = 'bitmask'
+ tag_name = 'bitfield'
with self.tagcontext(tag_name, attrs):
for member in enum.members:
@@ -128,7 +128,6 @@ class GIRWriter(XMLWriter):
('prop', prop.type)]
self.write_tag('property', attrs)
-
def _write_callback(self, callback):
attrs = [('name', callback.name)]
with self.tagcontext('callback', attrs):