]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix non-GObject interface properties in GObject classes
authorJürg Billeter <j@bitron.ch>
Mon, 27 Jul 2009 15:34:31 +0000 (17:34 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 27 Jul 2009 15:34:31 +0000 (17:34 +0200)
Fixes bug 539658.

codegen/valagobjectmodule.vala

index 588e383f17685a24c629c9e815522945224e1432..248d0fcc43d76423cb3dd89ab384c66819966bbf 100644 (file)
@@ -692,6 +692,14 @@ internal class Vala.GObjectModule : GTypeModule {
                        return false;
                }
 
+               if (prop.base_interface_property != null) {
+                       var iface = (Interface) prop.base_interface_property.parent_symbol;
+                       if (!iface.is_subtype_of (gobject_type)) {
+                               // implementing non-GObject property
+                               return false;
+                       }
+               }
+
                return true;
        }
 }