vala r1513 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1513 - in trunk: . vala
- Date: Sat, 31 May 2008 11:21:26 +0000 (UTC)
Author: juergbi
Date: Sat May 31 11:21:26 2008
New Revision: 1513
URL: http://svn.gnome.org/viewvc/vala?rev=1513&view=rev
Log:
2008-05-31 JÃrg Billeter <j bitron ch>
* vala/valasignal.vala:
Allow non-null sender parameter in signal handlers
Modified:
trunk/ChangeLog
trunk/vala/valasignal.vala
Modified: trunk/vala/valasignal.vala
==============================================================================
--- trunk/vala/valasignal.vala (original)
+++ trunk/vala/valasignal.vala Sat May 31 11:21:26 2008
@@ -99,7 +99,12 @@
var generated_delegate = new Delegate (null, return_type);
generated_delegate.has_target = true;
- var sender_param = new FormalParameter ("_sender", sender_type.copy ());
+ // sender parameter is never null and doesn't own its value
+ var sender_param_type = sender_type.copy ();
+ sender_param_type.value_owned = false;
+ sender_param_type.nullable = false;
+
+ var sender_param = new FormalParameter ("_sender", sender_param_type);
generated_delegate.add_parameter (sender_param);
foreach (FormalParameter param in parameters) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]