[vala] Support [CCode (scope = "async")] attribute for delegates
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Support [CCode (scope = "async")] attribute for delegates
- Date: Thu, 2 Aug 2012 12:34:51 +0000 (UTC)
commit d755870599b4f99a810bfbdbc27e708eb8b553ee
Author: JÃrg Billeter <j bitron ch>
Date: Thu Aug 2 14:32:47 2012 +0200
Support [CCode (scope = "async")] attribute for delegates
vala/valadelegatetype.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valadelegatetype.vala b/vala/valadelegatetype.vala
index 2cc6cf0..91029d3 100644
--- a/vala/valadelegatetype.vala
+++ b/vala/valadelegatetype.vala
@@ -1,6 +1,6 @@
/* valadelegatetype.vala
*
- * Copyright (C) 2007-2010 JÃrg Billeter
+ * Copyright (C) 2007-2012 JÃrg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -32,6 +32,7 @@ public class Vala.DelegateType : DataType {
public DelegateType (Delegate delegate_symbol) {
this.delegate_symbol = delegate_symbol;
+ this.is_called_once = (delegate_symbol.get_attribute_string ("CCode", "scope") == "async");
}
public override bool is_invokable () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]