From: Jürg Billeter Date: Thu, 2 Aug 2012 12:32:47 +0000 (+0200) Subject: Support [CCode (scope = "async")] attribute for delegates X-Git-Tag: 0.17.4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d755870599b4f99a810bfbdbc27e708eb8b553ee;p=thirdparty%2Fvala.git Support [CCode (scope = "async")] attribute for delegates --- diff --git a/vala/valadelegatetype.vala b/vala/valadelegatetype.vala index 2cc6cf0db..91029d39e 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 () {