[vala] Fix virtual write-only properties
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix virtual write-only properties
- Date: Thu, 1 Apr 2010 08:49:44 +0000 (UTC)
commit 1443046b6c993f9db2803557689d89a55a4fb3e0
Author: Jürg Billeter <j bitron ch>
Date: Thu Apr 1 10:48:12 2010 +0200
Fix virtual write-only properties
codegen/valagtypemodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index fe1c8af..45ff602 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -279,9 +279,9 @@ internal class Vala.GTypeModule : GErrorModule {
if (prop.set_accessor != null) {
CCodeFormalParameter cvalueparam;
if (prop.property_type.is_real_non_null_struct_type ()) {
- cvalueparam = new CCodeFormalParameter ("value", prop.get_accessor.value_type.get_cname () + "*");
+ cvalueparam = new CCodeFormalParameter ("value", prop.set_accessor.value_type.get_cname () + "*");
} else {
- cvalueparam = new CCodeFormalParameter ("value", prop.get_accessor.value_type.get_cname ());
+ cvalueparam = new CCodeFormalParameter ("value", prop.set_accessor.value_type.get_cname ());
}
var vdeclarator = new CCodeFunctionDeclarator ("set_%s".printf (prop.name));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]