vala r2317 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2317 - in trunk: . gobject
- Date: Fri, 9 Jan 2009 23:24:32 +0000 (UTC)
Author: juergbi
Date: Fri Jan 9 23:24:32 2009
New Revision: 2317
URL: http://svn.gnome.org/viewvc/vala?rev=2317&view=rev
Log:
2009-01-10 JÃrg Billeter <j bitron ch>
* gobject/valaccodebasemodule.vala:
Use correct C type for set accessors of properties whose get
accessor returns owned value, fixes bug 538666
Modified:
trunk/ChangeLog
trunk/gobject/valaccodebasemodule.vala
Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala (original)
+++ trunk/gobject/valaccodebasemodule.vala Fri Jan 9 23:24:32 2009
@@ -1128,6 +1128,8 @@
if (returns_real_struct) {
cvalueparam = new CCodeFormalParameter ("value", value_type.get_cname () + "*");
} else {
+ // property setters never take ownership
+ value_type.value_owned = false;
cvalueparam = new CCodeFormalParameter ("value", value_type.get_cname ());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]