aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-11-12 23:48:42 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-25 15:22:41 +0800
commit1a076de82797676d80ce3273dfe075d06111a446 (patch)
treeda64a1a19d9ae35462867f2954f42d6f5f2abe05 /src
parent0dd8e6cbd7b903d2ce8b56995e4b4ac6ed042f2c (diff)
downloadgsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar.gz
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar.bz2
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar.lz
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar.xz
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.tar.zst
gsoc2013-empathy-1a076de82797676d80ce3273dfe075d06111a446.zip
remove empathy_tp_chat_get_connection and priv->connection
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat-window.c2
-rw-r--r--src/empathy-invite-participant-dialog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index c0d1b1502..01736d75b 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -403,7 +403,7 @@ chat_window_conversation_menu_update (EmpathyChatWindowPriv *priv,
tp_chat = empathy_chat_get_tp_chat (priv->current_chat);
if (tp_chat != NULL) {
- connection = empathy_tp_chat_get_connection (tp_chat);
+ connection = tp_channel_borrow_connection (TP_CHANNEL (tp_chat));
sensitive = empathy_tp_chat_can_add_contact (tp_chat) &&
(tp_connection_get_status (connection, NULL) ==
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c
index c40bb9458..4a6694690 100644
--- a/src/empathy-invite-participant-dialog.c
+++ b/src/empathy-invite-participant-dialog.c
@@ -130,7 +130,7 @@ get_tp_contact_for_chat (EmpathyInviteParticipantDialog *self,
GList *personas, *l;
TpConnection *chat_conn;
- chat_conn = empathy_tp_chat_get_connection (self->priv->tp_chat);
+ chat_conn = tp_channel_borrow_connection ((TpChannel *) self->priv->tp_chat);
personas = folks_individual_get_personas (individual);