[vala] Return handler id when connecting signal handlers
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Return handler id when connecting signal handlers
- Date: Sat, 16 Jan 2010 19:13:50 +0000 (UTC)
commit 7ea3f6a40138c25cbf9c7296e59cbf008378877b
Author: Luca Bruno <lethalman88 gmail com>
Date: Sat Jan 16 20:09:13 2010 +0100
Return handler id when connecting signal handlers
Fixes bug 537146.
vala/valasignaltype.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valasignaltype.vala b/vala/valasignaltype.vala
index 4a6b585..851011c 100644
--- a/vala/valasignaltype.vala
+++ b/vala/valasignaltype.vala
@@ -68,7 +68,8 @@ public class Vala.SignalType : DataType {
Method get_connect_method () {
if (connect_method == null) {
- connect_method = new Method ("connect", new VoidType ());
+ var ulong_type = new IntegerType ((Struct) CodeContext.get ().root.scope.lookup ("ulong"));
+ connect_method = new Method ("connect", ulong_type);
connect_method.access = SymbolAccessibility.PUBLIC;
connect_method.external = true;
connect_method.owner = signal_symbol.scope;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]