summaryrefslogtreecommitdiff
path: root/vala/valamethodtype.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-13 11:51:27 +0200
committerJürg Billeter <j@bitron.ch>2009-09-13 17:02:47 +0200
commite6ab13145dc2309b21b761d9412ce71f74c7c972 (patch)
tree1815bf03322338cf74d7d5dc6ee8164de60f0f15 /vala/valamethodtype.vala
parent7fe449fc8069b5635074f74049647fc1cf53b1bc (diff)
downloadvala-e6ab13145dc2309b21b761d9412ce71f74c7c972.tar.gz
GAsync: Support GSourceFunc callbacks in async methods
Diffstat (limited to 'vala/valamethodtype.vala')
-rw-r--r--vala/valamethodtype.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valamethodtype.vala b/vala/valamethodtype.vala
index aa2721287..6167a2592 100644
--- a/vala/valamethodtype.vala
+++ b/vala/valamethodtype.vala
@@ -70,6 +70,8 @@ public class Vala.MethodType : DataType {
public override Symbol? get_member (string member_name) {
if (method_symbol.coroutine && member_name == "begin") {
return method_symbol;
+ } else if (method_symbol.coroutine && member_name == "callback") {
+ return method_symbol.get_callback_method ();
}
return null;
}