diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-03-12 16:51:23 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-30 14:43:00 +0200 |
commit | 29a3caef34597b0d9d7f87891d011a67c54dd17a (patch) | |
tree | 9f06d17a486944984fb684c6617e90acad3f8552 /vala/valadelegatetype.vala | |
parent | 2be23ae7f9aed9b263bcf94a32ac6c1e366db289 (diff) | |
download | vala-29a3caef34597b0d9d7f87891d011a67c54dd17a.tar.gz |
vala: Unify backing symbol instance of data-types
Diffstat (limited to 'vala/valadelegatetype.vala')
-rw-r--r-- | vala/valadelegatetype.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vala/valadelegatetype.vala b/vala/valadelegatetype.vala index 01fd0d268..1de80c509 100644 --- a/vala/valadelegatetype.vala +++ b/vala/valadelegatetype.vala @@ -26,12 +26,16 @@ using GLib; * The type of an instance of a delegate. */ public class Vala.DelegateType : CallableType { - public weak Delegate delegate_symbol { get; set; } + public weak Delegate delegate_symbol { + get { + return (Delegate) symbol; + } + } public bool is_called_once { get; set; } public DelegateType (Delegate delegate_symbol) { - this.delegate_symbol = delegate_symbol; + base (delegate_symbol); this.is_called_once = (delegate_symbol.get_attribute_string ("CCode", "scope") == "async"); } |