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



commit b7d33d104e46f50d0ec8492d288173cffbaf11f3
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 4ba4eeb..7bb9a43 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -48,6 +48,12 @@ public class Vala.GDBusServerModule : GDBusClientModule {
 	string generate_dbus_wrapper (Method m, ObjectTypeSymbol sym, bool ready = false) {
 		string wrapper_name = "_dbus_%s".printf (m.get_cname ());
 
+		if (m.base_method != null) {
+			m = m.base_method;
+		} else if (m.base_interface_method != null) {
+			m = m.base_interface_method;
+		}
+
 		if (ready) {
 			// async ready function
 			wrapper_name += "_ready";



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