summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-01-23 11:34:20 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2013-04-14 11:49:10 +0100
commit66982e6c17691869aa17c00416d61674b5b3e34f (patch)
treeb209fc169fa80bdbfe6818eafff769f5d8b9f0a6
parent0b008a263cfe39d5fcb128d9076c22dfec8905a7 (diff)
downloadtelepathy-glib-66982e6c17691869aa17c00416d61674b5b3e34f.tar.gz
Annotate tp_account_update_parameters_finish properly.
kuuko discovered that unset_parameters is wrongly inferred to be a string argument, not a string array argument. At runtime, passing a string crashes. I think this is a bug in gobject-introspection but we can annotate it as an array to fix this particular function.
-rw-r--r--telepathy-glib/account.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index 2a8aa389a..04b25a530 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -2860,7 +2860,7 @@ tp_account_update_parameters_finish (TpAccount *account,
* @account: a #TpAccount
* @parameters: (transfer none): a variant of type %G_VARIANT_TYPE_VARDICT
* containing new parameters to set on @account
- * @unset_parameters: list of parameters to unset on @account
+ * @unset_parameters: (array zero-terminated=1): list of parameters to unset on @account
* @callback: a callback to call when the request is satisfied
* @user_data: data to pass to @callback
*