xcbgen: fields get a parent reference
[free-sw/xcb/proto] / xcbgen / xtypes.py
index 45d7568..8ecbaa2 100644 (file)
@@ -76,6 +76,7 @@ class Type(object):
                 return
 
         complex_type.fields.append(new_field)
+        new_field.parent = complex_type
 
     def make_fd_of(self, module, complex_type, fd_name):
         '''