]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Return handler id when connecting signal handlers
authorLuca Bruno <lethalman88@gmail.com>
Sat, 16 Jan 2010 19:09:13 +0000 (20:09 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 16 Jan 2010 19:09:13 +0000 (20:09 +0100)
Fixes bug 537146.

vala/valasignaltype.vala

index 4a6b585a6e651023cf234a00dcb7fc929f17fc82..851011ce57a79101d320070454e4a05143399b46 100644 (file)
@@ -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;