[empathy] use tp_text_channel_dup_pending_messages()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] use tp_text_channel_dup_pending_messages()
- Date: Tue, 11 Sep 2012 13:19:15 +0000 (UTC)
commit 5ff09cda5bad6b821509876c0fac51c667318602
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Sep 11 12:41:37 2012 +0200
use tp_text_channel_dup_pending_messages()
tp_text_channel_get_pending_messages() has been deprecated.
libempathy/empathy-tp-chat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index 6dc1a32..9dfb95d 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -500,7 +500,7 @@ list_pending_messages (EmpathyTpChat *self)
{
GList *messages, *l;
- messages = tp_text_channel_get_pending_messages (TP_TEXT_CHANNEL (self));
+ messages = tp_text_channel_dup_pending_messages (TP_TEXT_CHANNEL (self));
for (l = messages; l != NULL; l = g_list_next (l))
{
@@ -509,7 +509,7 @@ list_pending_messages (EmpathyTpChat *self)
handle_incoming_message (self, message, FALSE);
}
- g_list_free (messages);
+ g_list_free_full (messages, g_object_unref);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]