aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-11 18:43:34 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-11 21:10:43 +0800
commit6b5d8ab2badd9aee642a45b1c49e9aad265d201f (patch)
treeaede257d72b8feebb762935e2a1305c8b4fbaa73 /src/empathy-chat-window.c
parent5ff09cda5bad6b821509876c0fac51c667318602 (diff)
downloadgsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar.gz
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar.bz2
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar.lz
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar.xz
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.tar.zst
gsoc2013-empathy-6b5d8ab2badd9aee642a45b1c49e9aad265d201f.zip
use tp_channel_get_connection()
tp_channel_get_connection() has been deprecated.
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 0c01617bb..6231b57b3 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -584,7 +584,7 @@ chat_window_conversation_menu_update (EmpathyChatWindow *self)
if (tp_chat != NULL)
{
- connection = tp_channel_borrow_connection (TP_CHANNEL (tp_chat));
+ connection = tp_channel_get_connection (TP_CHANNEL (tp_chat));
sensitive = empathy_tp_chat_can_add_contact (tp_chat) &&
(tp_connection_get_status (connection, NULL) ==
@@ -2037,7 +2037,7 @@ drag_data_received_individual_id (EmpathyChatWindow *self,
goto out;
}
- conn = tp_channel_borrow_connection ((TpChannel *) chat);
+ conn = tp_channel_get_connection ((TpChannel *) chat);
tp_contact = empathy_get_tp_contact_for_individual (individual, conn);
if (tp_contact == NULL)
{