From: Luca Bruno Date: Sun, 26 Jun 2011 17:05:08 +0000 (+0200) Subject: codewriter: Write delegate_target for fields X-Git-Tag: 0.13.1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f2c0192df9bfdb6a2d83f33e8a6a069794822f;p=thirdparty%2Fvala.git codewriter: Write delegate_target for fields --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index ee5daf111..34d426f70 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -828,6 +828,14 @@ public class Vala.CodeWriter : CodeVisitor { write_string ("array_length_type = \"%s\"".printf (f.array_length_type)); } } + } else if (f.variable_type is DelegateType) { + if (f.no_delegate_target) { + if (custom_cname || custom_ctype || custom_cheaders) { + write_string (", "); + } + + write_string ("delegate_target = false"); + } } write_string (")]");