]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codewriter: Write delegate_target for fields
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 26 Jun 2011 17:05:08 +0000 (19:05 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 26 Jun 2011 17:07:44 +0000 (19:07 +0200)
vala/valacodewriter.vala

index ee5daf1118acfd68f9f2909e76bd5f17c4edaada..34d426f701a28585bf773ec34e69be3044336434 100644 (file)
@@ -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 (")]");