When trying to map functions to structs, do not require a public structure
authorJohan Dahlin <jdahlin@async.com.br>
Tue, 20 Jan 2009 22:34:41 +0000 (22:34 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Tue, 20 Jan 2009 22:34:41 +0000 (22:34 +0000)
2009-01-20  Johan Dahlin  <jdahlin@async.com.br>

        * giscanner/glibtransformer.py:
        When trying to map functions to structs, do
        not require a public structure to exist, should
        fix Gst gir generation in.

svn path=/trunk/; revision=1055

ChangeLog
giscanner/glibtransformer.py

index 1b5b8ab..1d106c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-20  Johan Dahlin  <jdahlin@async.com.br>
+
+       * giscanner/glibtransformer.py:
+       When trying to map functions to structs, do
+       not require a public structure to exist, should
+       fix Gst gir generation in.
+
 2009-01-20  Johan Dahlin  <jdahlin@async.com.br>
 
        Bug 562615 – Struct methods missing
index 1829215..f4f5382 100644 (file)
@@ -425,6 +425,8 @@ class GLibTransformer(object):
 
         name = self._transformer.remove_prefix(remove_prefix)
         klass = self._get_attribute(name)
+        if klass is None:
+            return
 
         if not is_method:
             # Interfaces can't have constructors, punt to global scope