diff options
author | Will Szumski <will@cowboycoders.org> | 2014-02-23 19:04:52 +0000 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2014-03-02 22:12:48 +0100 |
commit | fd91fded8fbd4c430be0582757775900bebb7509 (patch) | |
tree | 2c7a9521781e959f350d17088a43598df4166e5b /codegen/valagirwriter.vala | |
parent | 978d0fa6ae0231ffdeb1cc8115ecb367992affbd (diff) | |
download | vala-fd91fded8fbd4c430be0582757775900bebb7509.tar.gz |
girwriter: Set scope=call for delegates when async or notified does not apply
Fixes bug 725012.
Diffstat (limited to 'codegen/valagirwriter.vala')
-rw-r--r-- | codegen/valagirwriter.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index f3d51003b..e65450912 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -1222,7 +1222,11 @@ public class Vala.GIRWriter : CodeVisitor { buffer.append (" scope=\"async\""); } else if (type.value_owned) { buffer.append_printf (" scope=\"notified\" destroy=\"%i\"", closure_index + 1); + } else { + buffer.append (" scope=\"call\""); } + } else if (delegate_type != null) { + buffer.append (" scope=\"call\""); } buffer.append_printf (">\n"); |