diff options
author | Colin Walters <walters@verbum.org> | 2009-02-25 18:43:14 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-26 14:07:21 -0500 |
commit | 4470a24e8cf3827efaddcfe240c3271cf1a0d6c0 (patch) | |
tree | 4bbcd76c1c325c403ec0408a81489ab97c5465f0 /giscanner/girwriter.py | |
parent | 251de52b083d3e0e42f25cb164a46865c2c2b9a9 (diff) | |
download | gobject-introspection-4470a24e8cf3827efaddcfe240c3271cf1a0d6c0.tar.gz |
Bug 557383 - Virtual function support
In order to determine whether a method is virtual, by default we look
at the class table to find a callback field. This should be fairly reliable,
but we may also later need annotations to more finely control this
in the case of a name clash with a signal.
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index df527090..9a08aaa5 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -167,7 +167,11 @@ and/or use gtk-doc annotations. ''') self._write_parameters(func.parameters) def _write_method(self, method): - self._write_function(method, tag_name='method') + if method.is_virtual: + tag_name = 'vfunc' + else: + tag_name = 'method' + self._write_function(method, tag_name) def _write_static_method(self, method): self._write_function(method, tag_name='function') |