From 35a4c734b0f350135a39643a5461b29d72547083 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 20 Jan 2009 22:34:41 +0000 Subject: [PATCH] When trying to map functions to structs, do not require a public structure 2009-01-20 Johan Dahlin * 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 | 7 +++++++ giscanner/glibtransformer.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1b5b8ab..1d106c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-20 Johan Dahlin + + * 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 Bug 562615 – Struct methods missing 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 -- 2.39.2