[vala/0.10] D-Bus: Fix overriding and interface methods in GDBus servers



commit 535d4de37a3ca5193bbb9d033cfa43e555e56d47
Author: Jürg Billeter <j bitron ch>
Date:   Wed Oct 20 23:48:38 2010 +0200

    D-Bus: Fix overriding and interface methods in GDBus servers
    
    Fixes bug 631044.

 codegen/valagdbusservermodule.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 066d969..72c9368 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -52,6 +52,12 @@ public class Vala.GDBusServerModule : GDBusClientModule {
 
 		CCodeDeclaration cdecl;
 
+		if (m.base_method != null) {
+			m = m.base_method;
+		} else if (m.base_interface_method != null) {
+			m = m.base_interface_method;
+		}
+
 		var function = new CCodeFunction (wrapper_name);
 		function.modifiers = CCodeModifiers.STATIC;
 		function.add_parameter (new CCodeFormalParameter ("self", sym.get_cname () + "*"));



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