Fix interface properties in GObject classes
authorAli Sabil <ali.sabil@gmail.com>
Sun, 19 Oct 2008 21:58:07 +0000 (21:58 +0000)
committerAli Sabil <asabil@src.gnome.org>
Sun, 19 Oct 2008 21:58:07 +0000 (21:58 +0000)
2008-10-19  Ali Sabil  <ali.sabil@gmail.com>

* vala/valainterface.vala:

Fix interface properties in GObject classes

svn path=/trunk/; revision=1859

ChangeLog
vala/valainterface.vala

index 1d2d4af..87a540b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-19  Ali Sabil  <ali.sabil@gmail.com>
+
+       * vala/valainterface.vala:
+
+       Fix interface properties in GObject classes
+
 2008-10-17  Marc-AndrĂ© Lureau  <marcandre.lureau@gmail.com>
 
        * gobject/valaccodeobjecttypesymbolbinding.vala:
index d5d8017..e7649fa 100644 (file)
@@ -541,6 +541,13 @@ public class Vala.Interface : ObjectTypeSymbol {
                        if (cl != null) {
                                return cl.get_param_spec_function ();
                        }
+                       var interf = prereq.type_symbol as Interface;
+                       if (interf != null) {
+                               var param_spec_function = interf.get_param_spec_function ();
+                               if (param_spec_function != null) {
+                                       return param_spec_function;
+                               }
+                       }
                }
 
                return null;