[vala/0.18] codegen: Fix g_simple_async_result_new in interface methods



commit e37fca7ca6c58ede0ebe0f675f9e3217cd96f39a
Author: JÃrg Billeter <j bitron ch>
Date:   Sun Nov 11 19:32:10 2012 +0100

    codegen: Fix g_simple_async_result_new in interface methods
    
    Fixes bug 684557.

 codegen/valagasyncmodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index 9e2a1b4..b40965c 100644
--- a/codegen/valagasyncmodule.vala
+++ b/codegen/valagasyncmodule.vala
@@ -202,9 +202,9 @@ public class Vala.GAsyncModule : GSignalModule {
 
 		var create_result = new CCodeFunctionCall (new CCodeIdentifier ("g_simple_async_result_new"));
 
-		var cl = m.parent_symbol as Class;
+		var t = m.parent_symbol as TypeSymbol;
 		if (!(m is CreationMethod) && m.binding == MemberBinding.INSTANCE &&
-		    cl != null && cl.is_subtype_of (gobject_type)) {
+		    t != null && t.is_subtype_of (gobject_type)) {
 			var gobject_cast = new CCodeFunctionCall (new CCodeIdentifier ("G_OBJECT"));
 			gobject_cast.add_argument (new CCodeIdentifier ("self"));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]