]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
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 7b4e3d06c63dc30bc0a019aa32ad99943a312682..04807592a3fca2b3ea0a471d5c2800361112fcd4 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 f69ee0b2ae3b1a53490fc375661b6bca3a94cb60..d9d750086ea4d0d38e35c30575d691c04083a290 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 ");