Mercurial > pidgin
diff src/gtkdialogs.c @ 9918:c203312d8224
[gaim-migrate @ 10810]
(21:52:28) noif: LSchiere: now that datallah's patch is applied, I've got
another that uses the prpl method he added. This makes the add/remove
button on chats update properly when a chat is added or removed from the
list:
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 31 Aug 2004 01:58:52 +0000 |
parents | e74eb0d11f86 |
children | e4a27c9aec4c |
line wrap: on
line diff
--- a/src/gtkdialogs.c Tue Aug 31 01:45:12 2004 +0000 +++ b/src/gtkdialogs.c Tue Aug 31 01:58:52 2004 +0000 @@ -865,7 +865,21 @@ static void gaim_gtkdialogs_remove_chat_cb(GaimChat *chat) { + char *name = NULL; + GaimConversation *conv = NULL; + + if (GAIM_PLUGIN_PROTOCOL_INFO(chat->account->gc->prpl)->get_chat_name != NULL) + name = GAIM_PLUGIN_PROTOCOL_INFO(chat->account->gc->prpl)->get_chat_name(chat->components); + gaim_blist_remove_chat(chat); + + if (name != NULL) { + conv = gaim_find_conversation_with_account(name, chat->account); + g_free(name); + } + + if (conv != NULL) + gaim_conversation_update(conv, GAIM_CONV_UPDATE_REMOVE); } void