diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 7 | ||||
-rw-r--r-- | libempathy-gtk/empathy-chat.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 295615413..36b0896d9 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -3429,3 +3429,10 @@ empathy_chat_messages_read (EmpathyChat *self) } priv->unread_messages = 0; } + +/* Return TRUE if on of the contacts in this chat is composing */ +gboolean +empathy_chat_is_composing (EmpathyChat *chat) +{ + return chat->priv->compositors != NULL; +} diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h index 596b83f5d..01b7a737b 100644 --- a/libempathy-gtk/empathy-chat.h +++ b/libempathy-gtk/empathy-chat.h @@ -89,6 +89,8 @@ void empathy_chat_set_show_contacts (EmpathyChat *chat, guint empathy_chat_get_nb_unread_messages (EmpathyChat *chat); void empathy_chat_messages_read (EmpathyChat *self); + +gboolean empathy_chat_is_composing (EmpathyChat *chat); G_END_DECLS #endif /* __EMPATHY_CHAT_H__ */ |