diff options
author | Jürg Billeter <j@bitron.ch> | 2008-12-19 21:41:10 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-12-19 21:41:10 +0000 |
commit | acf65f468ee87a935f24ae148aeb50a772bd028b (patch) | |
tree | 38ef9a3dc20b96c583e95c8934413ef00db4d8d1 /gobject | |
parent | 4ecd02398043a8ea468633a93824bfc673f7e62d (diff) | |
download | vala-acf65f468ee87a935f24ae148aeb50a772bd028b.tar.gz |
Fix temporary async idle support
2008-12-19 Jürg Billeter <j@bitron.ch>
* gobject/valagasyncmodule.vala:
Fix temporary async idle support
svn path=/trunk/; revision=2230
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/valagasyncmodule.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gobject/valagasyncmodule.vala b/gobject/valagasyncmodule.vala index 38fffdafc..ab1ba3ca4 100644 --- a/gobject/valagasyncmodule.vala +++ b/gobject/valagasyncmodule.vala @@ -201,11 +201,15 @@ public class Vala.GAsyncModule : GSignalModule { public override void visit_yield_statement (YieldStatement stmt) { if (stmt.yield_expression == null) { + // should be replaced by a simple return FALSE; when we have + // void idle () yields; + // working in the .vapi + var cfrag = new CCodeFragment (); stmt.ccodenode = cfrag; var idle_call = new CCodeFunctionCall (new CCodeIdentifier ("g_idle_add")); - idle_call.add_argument (new CCodeCastExpression (new CCodeIdentifier (current_method.get_real_cname ()), "GSourceFunc")); + idle_call.add_argument (new CCodeCastExpression (new CCodeIdentifier (current_method.get_real_cname () + "_co"), "GSourceFunc")); idle_call.add_argument (new CCodeIdentifier ("data")); int state = next_coroutine_state++; |