]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Set scope for callback parameters of async methods
authorJürg Billeter <j@bitron.ch>
Tue, 29 Mar 2011 09:53:28 +0000 (11:53 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 29 Mar 2011 09:53:28 +0000 (11:53 +0200)
codegen/valagirwriter.vala

index 177676772f5d4a4ad2aa5d322b541ae5fda02bee..8c5d352042cebf8b2ba48d3cecc9f9461f28904e 100644 (file)
@@ -980,6 +980,10 @@ public class Vala.GIRWriter : CodeVisitor {
                        if (type.value_owned) {
                                buffer.append_printf (" destroy=\"%i\"", closure_index + 1);
                        }
+
+                       if (delegate_type.is_called_once) {
+                               buffer.append (" scope=\"async\"");
+                       }
                }
 
                buffer.append_printf (">\n");