[vala] codegen: Always assume external interface properties are gobject properties



commit 603c1c792adf538125e17e8bf70804c97e96a8f5
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Jan 25 21:08:05 2014 +0100

    codegen: Always assume external interface properties are gobject properties

 codegen/valagobjectmodule.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index fcc51e6..ac8b8d3 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -730,8 +730,9 @@ public class Vala.GObjectModule : GTypeModule {
                        return false;
                }
 
-               if (type_sym is Interface && !prop.is_abstract) {
-                       // GObject does not support non-abstract interface properties
+               if (type_sym is Interface && !prop.is_abstract && !prop.external && !prop.external_package) {
+                       // GObject does not support non-abstract interface properties,
+                       // however we assume external properties always are GObject properties
                        return false;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]