From 1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 6 Aug 2007 12:42:15 +0000 Subject: Don't forget to reverse the glist of pending messages. 2007-08-06 Xavier Claessens * libempathy/empathy-tp-chat.c: Don't forget to reverse the glist of pending messages. * libempathy/empathy-tp-roomlist.c: Fix wrong room list names when listing them. svn path=/trunk/; revision=232 --- ChangeLog | 8 ++++++++ libempathy/empathy-tp-chat.c | 1 + libempathy/empathy-tp-roomlist.c | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 596e60aee..b62144334 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-08-06 Xavier Claessens + + * libempathy/empathy-tp-chat.c: Don't forget to reverse the glist of + pending messages. + + * libempathy/empathy-tp-roomlist.c: Fix wrong room list names when + listing them. + 2007-08-06 Xavier Claessens * libempathy-gtk/empathy-account-widget-msn.glade: diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 691d7a2f1..077afe36e 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -681,6 +681,7 @@ empathy_tp_chat_get_pendings (EmpathyTpChat *chat) g_value_array_free (message_struct); } + messages = g_list_reverse (messages); g_ptr_array_free (messages_list, TRUE); diff --git a/libempathy/empathy-tp-roomlist.c b/libempathy/empathy-tp-roomlist.c index 99b30b64c..849bfb90f 100644 --- a/libempathy/empathy-tp-roomlist.c +++ b/libempathy/empathy-tp-roomlist.c @@ -318,6 +318,7 @@ tp_roomlist_got_rooms_cb (DBusGProxy *roomlist_iface, EmpathyChatroom *chatroom; gchar *room_id; const gchar *room_name; + const GValue *room_name_value; GValueArray *room_struct; guint handle; const gchar *channel_type; @@ -330,7 +331,8 @@ tp_roomlist_got_rooms_cb (DBusGProxy *roomlist_iface, info = g_value_get_boxed (g_value_array_get_nth (room_struct, 2)); /* Create the chatroom */ - room_name = g_hash_table_lookup (info, "name"); + room_name_value = g_hash_table_lookup (info, "name"); + room_name = g_value_get_string (room_name_value); room_id = empathy_inspect_handle (priv->account, handle, TP_HANDLE_TYPE_ROOM); -- cgit v1.2.3