aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c12
-rw-r--r--libempathy/empathy-tp-chat.h2
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);