gobject-introspection r223 - trunk/giscanner



Author: johan
Date: Wed Apr 23 01:32:49 2008
New Revision: 223
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=223&view=rev

Log:
bitmask->bitfield, c:symbol->c:identifer api->repository

Modified:
   trunk/giscanner/girwriter.py

Modified: trunk/giscanner/girwriter.py
==============================================================================
--- trunk/giscanner/girwriter.py	(original)
+++ trunk/giscanner/girwriter.py	Wed Apr 23 01:32:49 2008
@@ -9,9 +9,9 @@
 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 @@
 
     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 @@
             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 @@
                  ('prop', prop.type)]
         self.write_tag('property', attrs)
 
-
     def _write_callback(self, callback):
         attrs = [('name', callback.name)]
         with self.tagcontext('callback', attrs):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]