aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-06 20:42:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-06 20:42:15 +0800
commit1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394 (patch)
tree09e86e688bac662dcf1b612f2da4b8b356dc7c04 /libempathy
parent8c62f091e26106a9145a441ba8bb22330463f1ee (diff)
downloadgsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar.gz
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar.bz2
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar.lz
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar.xz
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.tar.zst
gsoc2013-empathy-1f1d6e7d226a3ab6d9af7ff9aae00b1b7d802394.zip
Don't forget to reverse the glist of pending messages.
2007-08-06 Xavier Claessens <xclaesse@gmail.com> * 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
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-chat.c1
-rw-r--r--libempathy/empathy-tp-roomlist.c4
2 files changed, 4 insertions, 1 deletions
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);