# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188587315 0 # Node ID 11849a5c3951cfa9e457e2468d2ab550390436bb # Parent f902cd0dc9254517719c50206d71139ba29cadd7 Update the chat topic and userlist when reattaching the Pidgin UI. diff -r f902cd0dc925 -r 11849a5c3951 pidgin/gtkconv.c --- 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; }