aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-23 21:58:10 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-23 21:58:10 +0800
commit26c5dbdb15ffaba1bac960966617872d557a0f34 (patch)
tree5b094e8957e89502173238dec8308d7add699e6f /libempathy/empathy-tp-chat.c
parentbeecbb7de2abf1ba7eed3cfc46e4a1b150e433bb (diff)
downloadgsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.gz
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.bz2
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.lz
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.xz
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.tar.zst
gsoc2013-empathy-26c5dbdb15ffaba1bac960966617872d557a0f34.zip
Make sure we don't assume Text channel's handle_type is != NONE.
svn path=/trunk/; revision=1032
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r--libempathy/empathy-tp-chat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 7e26e34a7..c53bd1b72 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1119,6 +1119,16 @@ empathy_tp_chat_get_account (EmpathyTpChat *chat)
return priv->account;
}
+TpChannel *
+empathy_tp_chat_get_channel (EmpathyTpChat *chat)
+{
+ EmpathyTpChatPriv *priv = GET_PRIV (chat);
+
+ g_return_val_if_fail (EMPATHY_IS_TP_CHAT (chat), NULL);
+
+ return priv->channel;
+}
+
gboolean
empathy_tp_chat_is_ready (EmpathyTpChat *chat)
{