[Pkg-telepathy-commits] [telepathy-mission-control-6] 38/90: McdConnection: use g_dbus_connection_call() for simple Disconnect call

Simon McVittie smcv at debian.org
Wed May 14 12:09:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list