From: Jürg Billeter Date: Wed, 6 Aug 2008 13:00:55 +0000 (+0000) Subject: Fix crash when using VAPI properties outside of a class X-Git-Tag: VALA_0_3_5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eb3e9500984e7d56798bb9cab0d7d1708f465ce;p=thirdparty%2Fvala.git Fix crash when using VAPI properties outside of a class 2008-08-06 Jürg Billeter * gobject/valaccodegenerator.vala: Fix crash when using VAPI properties outside of a class svn path=/trunk/; revision=1735 --- diff --git a/ChangeLog b/ChangeLog index a2efe0f62..c64bf797e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-06 Jürg Billeter + + * gobject/valaccodegenerator.vala: + + Fix crash when using VAPI properties outside of a class + 2008-08-05 Thijs Vermeir * vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala: diff --git a/gobject/valaccodegenerator.vala b/gobject/valaccodegenerator.vala index 08b7ea4e9..b044937e4 100644 --- a/gobject/valaccodegenerator.vala +++ b/gobject/valaccodegenerator.vala @@ -953,7 +953,8 @@ public class Vala.CCodeGenerator : CodeGenerator { } // notify on property changes - if (current_class.is_subtype_of (gobject_type) && + var typesymbol = (TypeSymbol) prop.parent_symbol; + if (typesymbol.is_subtype_of (gobject_type) && prop.notify && prop.access != SymbolAccessibility.PRIVATE && // FIXME: use better means to detect gobject properties (acc.writable || acc.construction)) {