comparison 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
comparison
equal deleted inserted replaced
9917:e74eb0d11f86 9918:c203312d8224
863 } 863 }
864 864
865 static void 865 static void
866 gaim_gtkdialogs_remove_chat_cb(GaimChat *chat) 866 gaim_gtkdialogs_remove_chat_cb(GaimChat *chat)
867 { 867 {
868 char *name = NULL;
869 GaimConversation *conv = NULL;
870
871 if (GAIM_PLUGIN_PROTOCOL_INFO(chat->account->gc->prpl)->get_chat_name != NULL)
872 name = GAIM_PLUGIN_PROTOCOL_INFO(chat->account->gc->prpl)->get_chat_name(chat->components);
873
868 gaim_blist_remove_chat(chat); 874 gaim_blist_remove_chat(chat);
875
876 if (name != NULL) {
877 conv = gaim_find_conversation_with_account(name, chat->account);
878 g_free(name);
879 }
880
881 if (conv != NULL)
882 gaim_conversation_update(conv, GAIM_CONV_UPDATE_REMOVE);
869 } 883 }
870 884
871 void 885 void
872 gaim_gtkdialogs_remove_chat(GaimChat *chat) 886 gaim_gtkdialogs_remove_chat(GaimChat *chat)
873 { 887 {