[vala] D-Bus: Fix Connection.get_proxy.begin calls



commit 6496ee4dd6a79fd717da024996a9dd1a07887a16
Author: Jürg Billeter <j bitron ch>
Date:   Wed Mar 16 19:33:22 2011 +0100

    D-Bus: Fix Connection.get_proxy.begin calls

 codegen/valagdbusclientmodule.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index a3b4787..adc2f64 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -302,7 +302,11 @@ public class Vala.GDBusClientModule : GDBusModule {
 			ccall.add_argument (new CCodeConstant ("\"g-bus-type\""));
 			ccall.add_argument (get_cvalue (bus_type));
 		} else {
-			Expression connection = ((MemberAccess) expr.call).inner;
+			Expression connection = ma.inner;
+			if (ma.member_name == "begin" && ma.inner.symbol_reference == ma.symbol_reference) {
+				var inner_ma = (MemberAccess) ma.inner;
+				connection = inner_ma.inner;
+			}
 			ccall.add_argument (new CCodeConstant ("\"g-connection\""));
 			ccall.add_argument (get_cvalue (connection));
 		}



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