vala r2342 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2342 - in trunk: . gobject
- Date: Thu, 15 Jan 2009 11:26:07 +0000 (UTC)
Author: juergbi
Date: Thu Jan 15 11:26:07 2009
New Revision: 2342
URL: http://svn.gnome.org/viewvc/vala?rev=2342&view=rev
Log:
2009-01-15 JÃrg Billeter <j bitron ch>
* gobject/valadbusservermodule.vala:
Fix generated introspection information when using DBus.BusName
sender parameter
Modified:
trunk/ChangeLog
trunk/gobject/valadbusservermodule.vala
Modified: trunk/gobject/valadbusservermodule.vala
==============================================================================
--- trunk/gobject/valadbusservermodule.vala (original)
+++ trunk/gobject/valadbusservermodule.vala Thu Jan 15 11:26:07 2009
@@ -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 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]