aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
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
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')
-rw-r--r--libempathy-gtk/empathy-chat.c10
-rw-r--r--libempathy-gtk/empathy-chat.h2
2 files changed, 11 insertions, 1 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);
+}
+
diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h
index b7b6968f9..6b7fcf26e 100644
--- a/libempathy-gtk/empathy-chat.h
+++ b/libempathy-gtk/empathy-chat.h
@@ -82,7 +82,7 @@ void empathy_chat_correct_word (EmpathyChat *chat,
GtkTextIter *start,
GtkTextIter *end,
const gchar *new_word);
-
+gboolean empathy_chat_is_room (EmpathyChat *chat);
G_END_DECLS
#endif /* __EMPATHY_CHAT_H__ */