diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-09 03:46:55 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-09 03:46:55 +0800 |
commit | 5e08c5298729a858681a2c211356eeee0d1d4399 (patch) | |
tree | 4157fbec6f97911a820cb150bab9c0cd58102031 /libempathy/empathy-tp-chat.c | |
parent | 6e30bb870bc9748dd39e3a29992c5fd057afb339 (diff) | |
download | gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar.gz gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar.bz2 gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar.lz gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar.xz gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.tar.zst gsoc2013-empathy-5e08c5298729a858681a2c211356eeee0d1d4399.zip |
Use a GSList instead of GList to store messages to ack
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 381095efc..ea1c5ea62 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1672,25 +1672,25 @@ out: void empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat, - const GList *messages) { + const GSList *messages) { EmpathyTpChatPriv *priv = GET_PRIV (chat); /* Copy messages as the messges list (probably is) our own */ - GList *msgs = g_list_copy ((GList *) messages); - GList *l; + GSList *msgs = g_slist_copy ((GSList *) messages); + GSList *l; guint length; GArray *message_ids; g_return_if_fail (EMPATHY_IS_TP_CHAT (chat)); g_return_if_fail (priv->ready); - length = g_list_length ((GList *) messages); + length = g_slist_length ((GSList *) messages); if (length == 0) return; message_ids = g_array_sized_new (FALSE, FALSE, sizeof (guint), length); - for (l = msgs; l != NULL; l = g_list_next (l)) { + for (l = msgs; l != NULL; l = g_slist_next (l)) { GList *m; EmpathyMessage *message = EMPATHY_MESSAGE (l->data); @@ -1710,7 +1710,7 @@ empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat, acknowledge_messages (chat, message_ids); g_array_free (message_ids, TRUE); - g_list_free (msgs); + g_slist_free (msgs); } gboolean |