]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix generated introspection information when using DBus.BusName sender
authorJürg Billeter <j@bitron.ch>
Thu, 15 Jan 2009 11:26:07 +0000 (11:26 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 15 Jan 2009 11:26:07 +0000 (11:26 +0000)
2009-01-15  Jürg Billeter  <j@bitron.ch>

* gobject/valadbusservermodule.vala:

Fix generated introspection information when using DBus.BusName
sender parameter

svn path=/trunk/; revision=2342

ChangeLog
gobject/valadbusservermodule.vala

index 90af4f2449f681dfc65ec4baef56426a002ac8b8..04830336c44c54c239c22caec01ec6da0304a5d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-15  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valadbusservermodule.vala:
+
+       Fix generated introspection information when using DBus.BusName
+       sender parameter
+
 2009-01-15  Jürg Billeter  <j@bitron.ch>
 
        * vala/valaparser.vala:
index c7b6ab662c9738c9bdf310cd5a5ac292e8754fc3..47deca3ee631a2d56f635b1045b57fc77dcf0199 100644 (file)
@@ -1,6 +1,6 @@
 /* valadbusservermodule.vala
  *
- * Copyright (C) 2007-2008  Jürg Billeter
+ * Copyright (C) 2007-2009  Jürg Billeter
 *  Copyright (C) 2008  Philip Van Hoof
  *
  * This library is free software; you can redistribute it and/or
@@ -909,6 +909,13 @@ public class Vala.DBusServerModule : DBusClientModule {
                        result += "  <method name=\"%s\">\n".printf (Symbol.lower_case_to_camel_case (m.name));
 
                        foreach (var param in m.get_parameters ()) {
+                               if (param.parameter_type.data_type != null
+                                   && param.parameter_type.data_type.get_full_name () == "DBus.BusName") {
+                                       // skip sender parameter
+                                       // (implicit in D-Bus)
+                                       continue;
+                               }
+
                                string direction = param.direction == ParameterDirection.IN ? "in" : "out";
                                result += "    <arg name=\"%s\" type=\"%s\" direction=\"%s\"/>\n".printf (param.name, param.parameter_type.get_type_signature (), direction);
                        }