summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-24 18:43:38 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-24 18:43:38 +0000
commitbad1a57c4facff9308230bcd62ed3ce42b14cc1f (patch)
tree92cb35a9ee2c46e156e896ebf1adc5684652c814
parent2f84264add75cd6cbb1765e72692c301db95f139 (diff)
Replace dbus_g_method_return_error with g_dbus_method_invocation_return_gerror
-rw-r--r--rakia/connection-aliasing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rakia/connection-aliasing.c b/rakia/connection-aliasing.c
index 2c35f73..6d41970 100644
--- a/rakia/connection-aliasing.c
+++ b/rakia/connection-aliasing.c
@@ -160,7 +160,7 @@ rakia_connection_request_aliases (TpSvcConnectionInterfaceAliasing1 *iface,
if (!tp_handles_are_valid (contact_handles, contacts, FALSE, &error))
{
- dbus_g_method_return_error (context, error);
+ g_dbus_method_invocation_return_gerror (context, error);
g_error_free (error);
return;
}
@@ -250,7 +250,7 @@ rakia_connection_set_aliases (TpSvcConnectionInterfaceAliasing1 *iface,
/* One of the handles (if there are any) cannot be the self handle */
GError err = { TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Cannot set aliases for any contact except self" };
- dbus_g_method_return_error (context, &err);
+ g_dbus_method_invocation_return_gerror (context, &err);
return;
}