avoid critical warning when using abstract properties, fixes bug 503444
authorJuerg Billeter <j@bitron.ch>
Sun, 16 Dec 2007 17:19:30 +0000 (17:19 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 16 Dec 2007 17:19:30 +0000 (17:19 +0000)
2007-12-16  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorclass.vala: avoid critical warning when
  using abstract properties, fixes bug 503444

svn path=/trunk/; revision=778

ChangeLog
gobject/valaccodegeneratorclass.vala

index eaa4742..c872487 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-12-16  Jürg Billeter  <j@bitron.ch>
 
+       * gobject/valaccodegeneratorclass.vala: avoid critical warning when
+         using abstract properties, fixes bug 503444
+
+2007-12-16  Jürg Billeter  <j@bitron.ch>
+
        * gobject/valaccodegeneratormethod.vala: cast return value of
          g_type_create_instance to avoid gcc warning, fixes bug 503411
 
index c9aa5ae..9a24981 100644 (file)
@@ -559,7 +559,7 @@ public class Vala.CCodeGenerator {
 
        private bool class_has_readable_properties (Class! cl) {
                foreach (Property prop in cl.get_properties ()) {
-                       if (prop.get_accessor != null && !prop.is_abstract) {
+                       if (prop.get_accessor != null) {
                                return true;
                        }
                }
@@ -568,7 +568,7 @@ public class Vala.CCodeGenerator {
 
        private bool class_has_writable_properties (Class! cl) {
                foreach (Property prop in cl.get_properties ()) {
-                       if (prop.set_accessor != null && !prop.is_abstract) {
+                       if (prop.set_accessor != null) {
                                return true;
                        }
                }