tp_channel_get_connection() has been deprecated.
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);
}
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
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;
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);
g_return_val_if_fail (EMPATHY_IS_TP_CHAT (self), NULL);
- connection = tp_channel_borrow_connection (TP_CHANNEL (self));
+ connection = tp_channel_get_connection (TP_CHANNEL (self));
return tp_connection_get_account (connection);
}
self->priv->ready_result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data, tp_chat_prepare_ready_async);
- connection = tp_channel_borrow_connection (channel);
+ connection = tp_channel_get_connection (channel);
if (tp_proxy_has_interface_by_id (self,
TP_IFACE_QUARK_CHANNEL_INTERFACE_PASSWORD))
case TP_MEDIA_STREAM_ERROR_INVALID_CM_BEHAVIOR:
tp_connection_parse_object_path (
- tp_channel_borrow_connection (TP_CHANNEL (call)),
+ tp_channel_get_connection (TP_CHANNEL (call)),
NULL, &cm);
url = g_strdup_printf ("http://bugs.freedesktop.org/enter_bug.cgi?"
"call-channel", &call,
NULL);
- conn = tp_channel_borrow_connection (call);
+ conn = tp_channel_get_connection (call);
g_object_unref (call);
uri = tp_connection_get_balance_uri (conn);
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) ==
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)
{
{
TpConnection *chat_conn;
- chat_conn = tp_channel_borrow_connection (TP_CHANNEL (self->priv->tp_chat));
+ chat_conn = tp_channel_get_connection (TP_CHANNEL (self->priv->tp_chat));
if (chat_conn == NULL)
return NULL;
{
TpConnection *conn;
- conn = tp_channel_borrow_connection (TP_CHANNEL (self->priv->tp_chat));
+ conn = tp_channel_get_connection (TP_CHANNEL (self->priv->tp_chat));
return tp_proxy_has_interface_by_id (conn,
TP_IFACE_QUARK_CONNECTION_INTERFACE_CONTACT_LIST);