telepathy-logger: use tp_channel_get_connection()

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Wed Sep 25 07:38:46 PDT 2013


Module: telepathy-logger
Branch: master
Commit: b4b9349c72aecda03b19f20438a662e92e81e21b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-logger/commit/?id=b4b9349c72aecda03b19f20438a662e92e81e21b

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Mon Sep 23 16:14:49 2013 +0200

use tp_channel_get_connection()

tp_channel_borrow_connection has been deprecated.

https://bugs.freedesktop.org/show_bug.cgi?id=69797

---

 telepathy-logger/call-channel.c |    2 +-
 telepathy-logger/text-channel.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/telepathy-logger/call-channel.c b/telepathy-logger/call-channel.c
index 0413b35..3a0e779 100644
--- a/telepathy-logger/call-channel.c
+++ b/telepathy-logger/call-channel.c
@@ -60,7 +60,7 @@ get_contacts (TplCallChannel *self,
 {
   TplCallChannelPriv *priv = self->priv;
   TpChannel *chan = TP_CHANNEL (self);
-  TpConnection *con = tp_channel_borrow_connection (chan);
+  TpConnection *con = tp_channel_get_connection (chan);
   GHashTable *members;
   GHashTableIter iter;
   TpHandle handle;
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index 546bce4..67c0671 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -53,7 +53,7 @@ static void
 get_my_contact (TplTextChannel *self)
 {
   TpChannel *chan = TP_CHANNEL (self);
-  TpConnection *tp_conn = tp_channel_borrow_connection (chan);
+  TpConnection *tp_conn = tp_channel_get_connection (chan);
   TpContact *my_contact;
 
   my_contact = tp_channel_group_get_self_contact (chan);



More information about the telepathy-commits mailing list