[vala] girwriter: Set scope=call for delegates when async or notified does not apply
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girwriter: Set scope=call for delegates when async or notified does not apply
- Date: Sun, 2 Mar 2014 21:15:12 +0000 (UTC)
commit fd91fded8fbd4c430be0582757775900bebb7509
Author: Will Szumski <will cowboycoders org>
Date: Sun Feb 23 19:04:52 2014 +0000
girwriter: Set scope=call for delegates when async or notified does not apply
Fixes bug 725012.
codegen/valagirwriter.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index f3d5100..e654509 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]