Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 19559:11849a5c3951
Update the chat topic and userlist when reattaching the Pidgin UI.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 31 Aug 2007 19:08:35 +0000 |
parents | 11de4598b4c5 |
children | 1c5d0f2c2d4e f69e7fb8a449 f34b2e651454 af320e03fa63 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Fri Aug 31 18:43:51 2007 +0000 +++ b/pidgin/gtkconv.c Fri Aug 31 19:08:35 2007 +0000 @@ -5625,6 +5625,7 @@ account, name, displaying, conv, flags); g_free(displaying); } + static void pidgin_conv_chat_add_users(PurpleConversation *conv, GList *cbuddies, gboolean new_arrivals) { @@ -7238,10 +7239,10 @@ "conversation-displayed", gtkconv); } - /* XXX: If this is a chat: - * - populate the userlist - * - set the topic - */ + if (conv->type == PURPLE_CONV_TYPE_CHAT) { + pidgin_conv_update_fields(conv, PIDGIN_CONV_TOPIC); + pidgin_conv_chat_add_users(conv, PURPLE_CONV_CHAT(conv)->in_room, TRUE); + } return TRUE; }