]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix temporary async idle support
authorJürg Billeter <j@bitron.ch>
Fri, 19 Dec 2008 21:41:10 +0000 (21:41 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 19 Dec 2008 21:41:10 +0000 (21:41 +0000)
2008-12-19  Jürg Billeter  <j@bitron.ch>

* gobject/valagasyncmodule.vala:

Fix temporary async idle support

svn path=/trunk/; revision=2230

ChangeLog
gobject/valagasyncmodule.vala

index 01cd28092c35b27110797ed4a1510ce3d5814295..b367011864dac2a060259eca1e74d4da592c7cf6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-19  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valagasyncmodule.vala:
+
+       Fix temporary async idle support
+
 2008-12-19  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodebasemodule.vala:
index 38fffdafc14872cc42d5595817a4253f0d0774c8..ab1ba3ca41a4d788d13deca80ed79f2e474ce2b6 100644 (file)
@@ -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++;