[gobject-introspection] giscanner: Allow fields which are callbacks



commit 4319e4f32d8a0d1d4991d902c67d549465f07641
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Apr 6 14:27:06 2019 -0700

    giscanner: Allow fields which are callbacks
    
    This is apparently used in Gee-0.8 and Folks-0.6.

 giscanner/girparser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 5fa9f510..9ea408b4 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -542,7 +542,7 @@ class GIRParser(object):
     def _parse_field(self, node, parent):
         type_node = None
         anonymous_node = None
-        if node.tag in map(_corens, ('record', 'union')):
+        if node.tag in map(_corens, ('callback', 'record', 'union')):
             anonymous_elt = node
         else:
             anonymous_elt = self._find_first_child(node, _corens('callback'))


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