vala r1815 - in trunk: . gobject



Author: juergbi
Date: Mon Sep 29 21:44:44 2008
New Revision: 1815
URL: http://svn.gnome.org/viewvc/vala?rev=1815&view=rev

Log:
2008-09-29  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodegenerator.vala:

	Don't use g_object_notify for non-GObject properties,
	fixes bug 548442


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodegenerator.vala

Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala	(original)
+++ trunk/gobject/valaccodegenerator.vala	Mon Sep 29 21:44:44 2008
@@ -961,6 +961,8 @@
 			if (typesymbol.is_subtype_of (gobject_type) &&
 			    prop.notify &&
 			    prop.access != SymbolAccessibility.PRIVATE && // FIXME: use better means to detect gobject properties
+			    prop.binding == MemberBinding.INSTANCE &&
+			    !prop.property_type.is_real_struct_type () &&
 			    (acc.writable || acc.construction)) {
 				var notify_call = new CCodeFunctionCall (new CCodeIdentifier ("g_object_notify"));
 				notify_call.add_argument (new CCodeCastExpression (new CCodeIdentifier ("self"), "GObject *"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]