diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2009-01-20 22:34:41 (GMT) |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2009-01-20 22:34:41 (GMT) |
commit | 35a4c734b0f350135a39643a5461b29d72547083 (patch) | |
tree | 4643a2b6085d6788d038389ad5927ab74d6b3ff9 | |
parent | e6b0f3b11a2d00dc17d7f928ef94b4c3f610d499 (diff) |
When trying to map functions to structs, do not require a public structure
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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | giscanner/glibtransformer.py | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,12 @@ 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 * giscanner/annotationparser.py: diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py index 1829215..f4f5382 100644 --- a/giscanner/glibtransformer.py +++ b/giscanner/glibtransformer.py @@ -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 |