Parse bits attribute of fields
authorJürg Billeter <j@bitron.ch>
Sun, 12 Oct 2008 22:44:27 +0000 (22:44 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 12 Oct 2008 22:44:27 +0000 (22:44 +0000)
2008-10-12  Jürg Billeter  <j@bitron.ch>

* giscanner/girparser.py: Parse bits attribute of fields

svn path=/trunk/; revision=700

ChangeLog
giscanner/girparser.py

index 1bb83f1..6ca560d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-12  Jürg Billeter  <j@bitron.ch>
+
+       * giscanner/girparser.py: Parse bits attribute of fields
+
 2008-10-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
 
        * tests/repository/Makefile.am: run 'gitestrepo' in 'make check'
index c24d7bd..7fca083 100644 (file)
@@ -238,7 +238,8 @@ class GIRParser(object):
         type_node = self._parse_type(node)
         return Field(node.attrib['name'],
                      type_node,
-                     type_node.ctype)
+                     type_node.ctype,
+                     node.attrib.get('bits'))
 
     def _parse_property(self, node):
         type_node = self._parse_type(node)