]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtkmodule: clear out [GtkChild] on properties it not supported
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 18 Oct 2015 12:42:46 +0000 (14:42 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 28 Oct 2015 10:07:34 +0000 (11:07 +0100)
Fixes bug 731622

(cherry picked from commit 9a4d6b3bbda7139839f1b0a9528e7e75542045dd)

codegen/valagtkmodule.vala

index ecc709f646ec0ea6a54e4000886ee33d521d16ee..07c022e2885cfe867cd4e0033c5b94d6ed08728d 100644 (file)
@@ -216,6 +216,14 @@ public class Vala.GtkModule : GSignalModule {
                current_required_app_classes.clear ();
        }
 
+       public override void visit_property (Property prop) {
+               if (prop.get_attribute ("GtkChild") != null) {
+                       Report.error (prop.source_reference, "Annotating properties with [GtkChild] is not yet supported");
+               }
+
+               base.visit_property (prop);
+       }
+
        public override void visit_field (Field f) {
                base.visit_field (f);