[vala] Fix connecting to dynamic signals with non-void return type
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix connecting to dynamic signals with non-void return type
- Date: Mon, 18 Oct 2010 19:52:55 +0000 (UTC)
commit 37049155eb094635ad25f6c935fc17af4525cdaa
Author: Jürg Billeter <j bitron ch>
Date: Mon Oct 18 21:51:36 2010 +0200
Fix connecting to dynamic signals with non-void return type
Fixes bug 622089.
vala/valamethodcall.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 5a3b8dd..7fdf2a3 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -559,6 +559,7 @@ public class Vala.MethodCall : Expression {
var dynamic_sig = m.parent_symbol as DynamicSignal;
if (dynamic_sig != null && dynamic_sig.handler != null) {
+ dynamic_sig.return_type = dynamic_sig.handler.value_type.get_return_type ().copy ();
bool first = true;
foreach (FormalParameter param in dynamic_sig.handler.value_type.get_parameters ()) {
if (first) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]