[next] telepathy-mission-control: McdConnection: use g_dbus_connection_call() for simple Disconnect call
Simon McVittie
smcv at kemper.freedesktop.org
Thu Apr 3 07:28:02 PDT 2014
Module: telepathy-mission-control
Branch: next
Commit: c807dd78a290e91bd96e7aa382959dbe1f7007a0
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=c807dd78a290e91bd96e7aa382959dbe1f7007a0
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Mar 21 17:56:07 2014 +0000
McdConnection: use g_dbus_connection_call() for simple Disconnect call
---
src/mcd-connection.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index c1d84dc..28a306f 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1336,14 +1336,10 @@ request_connection_cb (TpConnectionManager *proxy, const gchar *bus_name,
{
/* no point in making a TpConnection for something we're just
* going to throw away */
- DBusGProxy *tmp_proxy = dbus_g_proxy_new_for_name
- (tp_proxy_get_dbus_connection (proxy),
- bus_name, obj_path, TP_IFACE_CONNECTION);
-
DEBUG ("Disconnecting it: %s", obj_path);
- dbus_g_proxy_call_no_reply (tmp_proxy, "Disconnect",
- G_TYPE_INVALID);
- g_object_unref (tmp_proxy);
+ g_dbus_connection_call (tp_proxy_get_dbus_connection (proxy),
+ bus_name, obj_path, TP_IFACE_CONNECTION, "Disconnect",
+ NULL, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL);
}
if (connection != NULL)
More information about the telepathy-commits
mailing list