aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-11 21:11:06 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-11 21:11:06 +0800
commita0a612ae36134189ebb1de3647eca79e45d749e7 (patch)
tree40cccdcab90e0564454642d5e2fe141d654684c7 /libempathy-gtk/empathy-chat.c
parent8099574fb1fd23c010bf4e36f0d56d480f256284 (diff)
downloadgsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar.gz
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar.bz2
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar.lz
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar.xz
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.tar.zst
gsoc2013-empathy-a0a612ae36134189ebb1de3647eca79e45d749e7.zip
Update for new API
svn path=/trunk/; revision=907
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 0dbc25a41..3be3302f6 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1572,10 +1572,10 @@ empathy_chat_set_tp_chat (EmpathyChat *chat,
EmpathyTpChat *tp_chat)
{
EmpathyChatPriv *priv;
- TpChan *tp_chan;
g_return_if_fail (EMPATHY_IS_CHAT (chat));
g_return_if_fail (EMPATHY_IS_TP_CHAT (tp_chat));
+ g_return_if_fail (empathy_tp_chat_is_ready (tp_chat));
priv = GET_PRIV (chat);
@@ -1594,8 +1594,6 @@ empathy_chat_set_tp_chat (EmpathyChat *chat,
priv->tp_chat = g_object_ref (tp_chat);
priv->id = g_strdup (empathy_tp_chat_get_id (tp_chat));
priv->account = g_object_ref (empathy_tp_chat_get_account (tp_chat));
- tp_chan = empathy_tp_chat_get_channel (tp_chat);
- priv->handle_type = tp_chan->handle_type;
g_signal_connect (tp_chat, "message-received",
G_CALLBACK (chat_message_received_cb),