diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 18:43:34 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-11 21:10:43 +0800 |
commit | 6b5d8ab2badd9aee642a45b1c49e9aad265d201f (patch) | |
tree | aede257d72b8feebb762935e2a1305c8b4fbaa73 /libempathy-gtk | |
parent | 5ff09cda5bad6b821509876c0fac51c667318602 (diff) | |
download | gsoc2013-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 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 308587b52..917f4c02e 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -754,7 +754,7 @@ nick_command_supported (EmpathyChat *chat) EmpathyChatPriv * priv = GET_PRIV (chat); TpConnection *connection; - connection = tp_channel_borrow_connection (TP_CHANNEL (priv->tp_chat)); + connection = tp_channel_get_connection (TP_CHANNEL (priv->tp_chat)); return tp_proxy_has_interface_by_id (connection, EMP_IFACE_QUARK_CONNECTION_INTERFACE_RENAMING); } @@ -988,7 +988,7 @@ chat_command_whois (EmpathyChat *chat, TpConnection *conn; EmpathyClientFactory *factory; - conn = tp_channel_borrow_connection ((TpChannel *) priv->tp_chat); + conn = tp_channel_get_connection ((TpChannel *) priv->tp_chat); factory = empathy_client_factory_dup (); /* Element 0 of 'strv' is "whois"; element 1 is the contact ID @@ -1534,7 +1534,7 @@ append_balance_error (EmpathyChat *chat, const gchar *message_body) { EmpathyChatPriv *priv = GET_PRIV (chat); - TpConnection *conn = tp_channel_borrow_connection (TP_CHANNEL (priv->tp_chat)); + TpConnection *conn = tp_channel_get_connection (TP_CHANNEL (priv->tp_chat)); const gchar *uri = tp_connection_get_balance_uri (conn); const gchar *error = _("insufficient balance to send message"); gchar *str, *str_markup = NULL; @@ -3339,7 +3339,7 @@ chat_constructed (GObject *object) if (priv->tp_chat != NULL) { TpChannel *channel = TP_CHANNEL (priv->tp_chat); - TpConnection *conn = tp_channel_borrow_connection (channel); + TpConnection *conn = tp_channel_get_connection (channel); gboolean supports_avatars = tp_proxy_has_interface_by_id (conn, TP_IFACE_QUARK_CONNECTION_INTERFACE_AVATARS); |