aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-08-30 00:04:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-08-30 00:04:51 +0800
commitf072481137b81850c18db4272bcc729e04dbffc0 (patch)
tree86b56e737aa86a03b43a24b04dc7172cc5c23028 /libempathy-gtk/empathy-chat.c
parent2823e63a406990540e938b477ac1dcc730c6922b (diff)
downloadgsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar.gz
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar.bz2
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar.lz
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar.xz
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.tar.zst
gsoc2013-empathy-f072481137b81850c18db4272bcc729e04dbffc0.zip
Add a menu item in chat window to set the room as favorite
svn path=/trunk/; revision=1401
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 48aa793d5..1dd3908b4 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1793,3 +1793,13 @@ empathy_chat_correct_word (EmpathyChat *chat,
-1);
}
+gboolean
+empathy_chat_is_room (EmpathyChat *chat)
+{
+ EmpathyChatPriv *priv = GET_PRIV (chat);
+
+ g_return_val_if_fail (EMPATHY_IS_CHAT (chat), FALSE);
+
+ return (priv->handle_type == TP_HANDLE_TYPE_ROOM);
+}
+