diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-02-02 00:57:24 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2014-02-20 03:09:38 +0100 |
commit | b6568a4c8007f574f8b9c6a048d04f80dd291f37 (patch) | |
tree | 6519689ee028c39cfff837b2bef13ab433b22904 /giscanner/ast.py | |
parent | 6cc9207cbdb1328c746e0899f459bb09d1e3e954 (diff) | |
download | gobject-introspection-b6568a4c8007f574f8b9c6a048d04f80dd291f37.tar.gz |
scanner: support virtual functions with a typedef-ed callback
The field of a callback need not be anonymous, it could be a
typedef, with a proper Type node.
Fixes TelepathyGlib.BaseClient having no virtual functions
(and probably others)
https://bugzilla.gnome.org/show_bug.cgi?id=723439
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index b992c111..130f50c5 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -681,8 +681,8 @@ class VFunction(Callable): self.invoker = None @classmethod - def from_callback(cls, cb): - obj = cls(cb.name, cb.retval, cb.parameters[1:], + def from_callback(cls, name, cb): + obj = cls(name, cb.retval, cb.parameters[1:], cb.throws) return obj |