[glib/glib-2-28] GDBusMethodInvocation: Improve get_parameters() documentation.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] GDBusMethodInvocation: Improve get_parameters() documentation.
- Date: Sun, 3 Apr 2011 07:12:47 +0000 (UTC)
commit cdeb2dbd475c2220b832b8165b1a3fabd2ec3acf
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Apr 2 15:42:11 2011 +0200
GDBusMethodInvocation: Improve get_parameters() documentation.
Note that the returned GVariant is always a tuple.
See bug #646420.
gio/gdbusmethodinvocation.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusmethodinvocation.c b/gio/gdbusmethodinvocation.c
index 2e6b5e6..64b7486 100644
--- a/gio/gdbusmethodinvocation.c
+++ b/gio/gdbusmethodinvocation.c
@@ -249,9 +249,10 @@ g_dbus_method_invocation_get_message (GDBusMethodInvocation *invocation)
* g_dbus_method_invocation_get_parameters:
* @invocation: A #GDBusMethodInvocation.
*
- * Gets the parameters of the method invocation.
+ * Gets the parameters of the method invocation. If there are no input
+ * parameters then this will return a GVariant with 0 children rather than NULL.
*
- * Returns: A #GVariant. Do not free, it is owned by @invocation.
+ * Returns: (transfer none): A #GVariant tuple. Do not unref this because it is owned by @invocation.
*
* Since: 2.26
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]