gobject-introspection r246 - in trunk: . giscanner tests/parser



Author: johan
Date: Mon Apr 28 11:52:53 2008
New Revision: 246
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=246&view=rev

Log:
2008-04-28  Johan Dahlin  <johan gnome org>

        * giscanner/girwriter.py:
        * tests/parser/Foo-expected.gir:
        Write property.type as a child node.



Modified:
   trunk/ChangeLog
   trunk/giscanner/girwriter.py
   trunk/tests/parser/Foo-expected.gir

Modified: trunk/giscanner/girwriter.py
==============================================================================
--- trunk/giscanner/girwriter.py	(original)
+++ trunk/giscanner/girwriter.py	Mon Apr 28 11:52:53 2008
@@ -159,9 +159,9 @@
                 self._write_method(method)
 
     def _write_property(self, prop):
-        attrs = [('name', prop.name),
-                 ('prop', prop.type.name)]
-        self.write_tag('property', attrs)
+        attrs = [('name', prop.name)]
+        with self.tagcontext('property', attrs):
+            self._write_type(prop.type)
 
     def _write_callback(self, callback):
         attrs = [('name', callback.name)]

Modified: trunk/tests/parser/Foo-expected.gir
==============================================================================
--- trunk/tests/parser/Foo-expected.gir	(original)
+++ trunk/tests/parser/Foo-expected.gir	Mon Apr 28 11:52:53 2008
@@ -169,7 +169,9 @@
           </parameter>
         </parameters>
       </method>
-      <property name="string" prop="gchararray"/>
+      <property name="string">
+        <type name="gchararray"/>
+      </property>
     </class>
     <class name="Subobject"
            parent="Object"



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