[vala] girwriter: Set scope for callback parameters of async methods
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girwriter: Set scope for callback parameters of async methods
- Date: Tue, 29 Mar 2011 09:58:43 +0000 (UTC)
commit 55ab304a9954dc280174dad8eb94aee4ea0a425b
Author: Jürg Billeter <j bitron ch>
Date: Tue Mar 29 11:53:28 2011 +0200
girwriter: Set scope for callback parameters of async methods
codegen/valagirwriter.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index 1776767..8c5d352 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]