Support static properties, patch by Ali Sabil
authorJürg Billeter <j@bitron.ch>
Sun, 28 Sep 2008 11:44:59 +0000 (11:44 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 28 Sep 2008 11:44:59 +0000 (11:44 +0000)
2008-09-28  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:

Support static properties, patch by Ali Sabil

svn path=/trunk/; revision=1805

ChangeLog
vala/valainterfacewriter.vala

index 7b4e3d0..0480759 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-28  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valainterfacewriter.vala:
+
+       Support static properties, patch by Ali Sabil
+
 2008-09-27  Jürg Billeter  <j@bitron.ch>
 
        * vapi/packages/gio-2.0/:
index f69ee0b..d9d7500 100644 (file)
@@ -855,7 +855,9 @@ public class Vala.InterfaceWriter : CodeVisitor {
                write_indent ();
                write_accessibility (prop);
 
-               if (prop.is_abstract) {
+               if (prop.binding == MemberBinding.STATIC) {
+                       write_string ("static ");
+               } else  if (prop.is_abstract) {
                        write_string ("abstract ");
                } else if (prop.is_virtual) {
                        write_string ("virtual ");