[vala] D-Bus: Fix signal name mangling in dynamic dbus-glib clients



commit 53e83a05d3b08a1a0292f3da6994bb4172309e2f
Author: Jürg Billeter <j bitron ch>
Date:   Sun Jun 20 12:14:11 2010 +0200

    D-Bus: Fix signal name mangling in dynamic dbus-glib clients
    
    Fixes bug 583207.

 codegen/valadbusclientmodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valadbusclientmodule.vala b/codegen/valadbusclientmodule.vala
index 77b90fc..f6e39ee 100644
--- a/codegen/valadbusclientmodule.vala
+++ b/codegen/valadbusclientmodule.vala
@@ -877,7 +877,7 @@ public class Vala.DBusClientModule : DBusModule {
 
 		var call = new CCodeFunctionCall (new CCodeIdentifier ("dbus_g_proxy_connect_signal"));
 		call.add_argument (new CCodeIdentifier ("obj"));
-		call.add_argument (new CCodeIdentifier ("signal_name"));
+		call.add_argument (new CCodeConstant ("\"%s\"".printf (get_dynamic_dbus_name (sig.name))));
 		call.add_argument (new CCodeIdentifier ("handler"));
 		call.add_argument (new CCodeIdentifier ("data"));
 		call.add_argument (new CCodeConstant ("NULL"));
@@ -887,7 +887,7 @@ public class Vala.DBusClientModule : DBusModule {
 	void generate_dbus_disconnect_wrapper (DynamicSignal sig, CCodeBlock block) {
 		var call = new CCodeFunctionCall (new CCodeIdentifier ("dbus_g_proxy_disconnect_signal"));
 		call.add_argument (new CCodeIdentifier ("obj"));
-		call.add_argument (new CCodeIdentifier ("signal_name"));
+		call.add_argument (new CCodeConstant ("\"%s\"".printf (get_dynamic_dbus_name (sig.name))));
 		call.add_argument (new CCodeIdentifier ("handler"));
 		call.add_argument (new CCodeIdentifier ("data"));
 		block.add_statement (new CCodeExpressionStatement (call));



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