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-gtk | |
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-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index bed7aa78e..d27337b25 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -96,7 +96,7 @@ typedef struct { GtkWidget *info_bar_vbox; GtkWidget *search_bar; - GList *pending_messages; + GSList *pending_messages; /* TRUE if the pending messages can be displayed. This is to avoid to show * pending messages *before* messages from logs. (#603980) */ gboolean can_show_pending; @@ -1116,7 +1116,7 @@ chat_message_received (EmpathyChat *chat, EmpathyMessage *message) TP_CHANNEL_CHAT_STATE_ACTIVE, chat); - priv->pending_messages = g_list_prepend (priv->pending_messages, + priv->pending_messages = g_slist_prepend (priv->pending_messages, g_object_ref (message)); g_signal_emit (chat, signals[NEW_MESSAGE], 0, message); @@ -2936,7 +2936,7 @@ empathy_chat_get_nb_unread_messages (EmpathyChat *self) g_return_val_if_fail (EMPATHY_IS_CHAT (self), FALSE); - return g_list_length (priv->pending_messages); + return g_slist_length (priv->pending_messages); } /* called when the messages have been read by user */ @@ -2952,7 +2952,7 @@ empathy_chat_messages_read (EmpathyChat *self) while (priv->pending_messages != NULL) { g_object_unref (priv->pending_messages->data); - priv->pending_messages = g_list_delete_link ( + priv->pending_messages = g_slist_delete_link ( priv->pending_messages, priv->pending_messages); } } |