[empathy: 1/3] add API to TpChat to ack all pending messages in one go
- From: Sjoerd Simons <sjoerds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 1/3] add API to TpChat to ack all pending messages in one go
- Date: Tue, 16 Feb 2010 12:07:03 +0000 (UTC)
commit 94539737998972571a33af133ae91b2769f7cd99
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Mon Feb 15 23:28:17 2010 +0000
add API to TpChat to ack all pending messages in one go
libempathy/empathy-tp-chat.c | 7 +++++++
libempathy/empathy-tp-chat.h | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index ea1c5ea..65b4926 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1713,6 +1713,13 @@ empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat,
g_slist_free (msgs);
}
+void
+empathy_tp_chat_acknowledge_all_messages (EmpathyTpChat *chat)
+{
+ empathy_tp_chat_acknowledge_messages (chat,
+ (GSList *) empathy_tp_chat_get_pending_messages (chat));
+}
+
gboolean
empathy_tp_chat_password_needed (EmpathyTpChat *self)
{
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h
index f281e1d..f0a4caa 100644
--- a/libempathy/empathy-tp-chat.h
+++ b/libempathy/empathy-tp-chat.h
@@ -85,6 +85,7 @@ void empathy_tp_chat_acknowledge_message (EmpathyTpChat *chat,
EmpathyMessage *message);
void empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat,
const GSList *messages);
+void empathy_tp_chat_acknowledge_all_messages (EmpathyTpChat *chat);
gboolean empathy_tp_chat_password_needed (EmpathyTpChat *chat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]