aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-18 20:48:47 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-18 21:34:30 +0800
commitc97c920a473ac08460f3869db70a6bb829c9317d (patch)
tree494b9c5917c847fe9d664c3371087d3384029172 /libempathy
parentd12280ac153d2b16b2a6a7181ebc5fa4c9300408 (diff)
downloadgsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar.gz
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar.bz2
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar.lz
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar.xz
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.tar.zst
gsoc2013-empathy-c97c920a473ac08460f3869db70a6bb829c9317d.zip
use the TpChannel:chat-state-changed signal
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 580112529..a56c08a32 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -483,14 +483,13 @@ static void
tp_chat_state_changed_cb (TpChannel *channel,
TpHandle handle,
TpChannelChatState state,
- gpointer user_data,
- GObject *chat)
+ EmpathyTpChat *chat)
{
EmpathyTpChatPriv *priv = GET_PRIV (chat);
empathy_tp_contact_factory_get_from_handle (priv->connection, handle,
tp_chat_state_changed_got_contact_cb, GUINT_TO_POINTER (state),
- NULL, chat);
+ NULL, G_OBJECT (chat));
}
static void
@@ -847,10 +846,8 @@ check_almost_ready (EmpathyTpChat *chat)
tp_g_signal_connect_object (priv->channel, "message-sent",
G_CALLBACK (message_sent_cb), chat, 0);
- tp_cli_channel_interface_chat_state_connect_to_chat_state_changed (priv->channel,
- tp_chat_state_changed_cb,
- NULL, NULL,
- G_OBJECT (chat), NULL);
+ tp_g_signal_connect_object (priv->channel, "chat-state-changed",
+ G_CALLBACK (tp_chat_state_changed_cb), chat, 0);
check_ready (chat);
}