diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 10 | ||||
-rw-r--r-- | libempathy-gtk/empathy-chat.h | 2 |
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__ */ |