summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2009-01-11 22:59:13 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-11 22:59:13 +0000
commit3f6dd727233c364396cf9adff2e2721942228c0b (patch)
tree2a4ddf08b87e72e7057a3ea0b3e2b282d0049517
parentdb29f9897a6a4fbea8b07b7d0fc7cf90f275c618 (diff)
downloadgobject-introspection-3f6dd727233c364396cf9adff2e2721942228c0b.tar.gz
Apply callback scope transfer before attempting to guess it, to a scenario where we guess/annotation something and then forcefully overrides it
svn path=/branches/annotation/; revision=1010
-rw-r--r--giscanner/annotationparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 10ebe64b..b942ed38 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -312,13 +312,13 @@ class AnnotationApplier(object):
def _parse_param(self, parent, param, block):
tag = self._get_tag(block, param.name)
options = getattr(tag, 'options', {})
- self._parse_param_ret_common(parent, param, options)
if isinstance(parent, Function):
scope = options.get('scope')
if scope:
param.scope = scope.one()
param.transfer = PARAM_TRANSFER_NONE
+ self._parse_param_ret_common(parent, param, options)
def _parse_param_ret_common(self, parent, node, options):
node.direction = self._extract_direction(node, options)