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 | |
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')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 12 | ||||
-rw-r--r-- | libempathy/empathy-tp-chat.h | 2 |
2 files changed, 7 insertions, 7 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 diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index 6b5fc8d0b..f281e1dc1 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -84,7 +84,7 @@ const GList * empathy_tp_chat_get_pending_messages (EmpathyTpChat *chat); void empathy_tp_chat_acknowledge_message (EmpathyTpChat *chat, EmpathyMessage *message); void empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat, - const GList *messages); + const GSList *messages); gboolean empathy_tp_chat_password_needed (EmpathyTpChat *chat); |