| 573 g_hash_table_destroy(conv->data); |
573 g_hash_table_destroy(conv->data); |
| 574 conv->data = NULL; |
574 conv->data = NULL; |
| 575 |
575 |
| 576 if (ops != NULL && ops->destroy_conversation != NULL) |
576 if (ops != NULL && ops->destroy_conversation != NULL) |
| 577 ops->destroy_conversation(conv); |
577 ops->destroy_conversation(conv); |
| |
578 conv->ui_data = NULL; |
| 578 |
579 |
| 579 purple_conversation_close_logs(conv); |
580 purple_conversation_close_logs(conv); |
| 580 |
581 |
| 581 purple_conversation_clear_message_history(conv); |
582 purple_conversation_clear_message_history(conv); |
| 582 |
583 |
| 2268 void purple_conversation_clear_message_history(PurpleConversation *conv) |
2269 void purple_conversation_clear_message_history(PurpleConversation *conv) |
| 2269 { |
2270 { |
| 2270 GList *list = conv->message_history; |
2271 GList *list = conv->message_history; |
| 2271 message_history_free(list); |
2272 message_history_free(list); |
| 2272 conv->message_history = NULL; |
2273 conv->message_history = NULL; |
| |
2274 |
| |
2275 purple_signal_emit(purple_conversations_get_handle(), |
| |
2276 "cleared-message-history", conv); |
| 2273 } |
2277 } |
| 2274 |
2278 |
| 2275 GList *purple_conversation_get_message_history(PurpleConversation *conv) |
2279 GList *purple_conversation_get_message_history(PurpleConversation *conv) |
| 2276 { |
2280 { |
| 2277 return conv->message_history; |
2281 return conv->message_history; |
| 2624 purple_value_new(PURPLE_TYPE_SUBTYPE, |
2628 purple_value_new(PURPLE_TYPE_SUBTYPE, |
| 2625 PURPLE_SUBTYPE_CONVERSATION), |
2629 PURPLE_SUBTYPE_CONVERSATION), |
| 2626 purple_value_new(PURPLE_TYPE_STRING), |
2630 purple_value_new(PURPLE_TYPE_STRING), |
| 2627 purple_value_new(PURPLE_TYPE_STRING)); |
2631 purple_value_new(PURPLE_TYPE_STRING)); |
| 2628 |
2632 |
| |
2633 purple_signal_register(handle, "cleared-message-history", |
| |
2634 purple_marshal_VOID__POINTER, NULL, 1, |
| |
2635 purple_value_new(PURPLE_TYPE_SUBTYPE, |
| |
2636 PURPLE_SUBTYPE_CONVERSATION)); |
| |
2637 |
| 2629 purple_signal_register(handle, "conversation-extended-menu", |
2638 purple_signal_register(handle, "conversation-extended-menu", |
| 2630 purple_marshal_VOID__POINTER_POINTER, NULL, 2, |
2639 purple_marshal_VOID__POINTER_POINTER, NULL, 2, |
| 2631 purple_value_new(PURPLE_TYPE_SUBTYPE, |
2640 purple_value_new(PURPLE_TYPE_SUBTYPE, |
| 2632 PURPLE_SUBTYPE_CONVERSATION), |
2641 PURPLE_SUBTYPE_CONVERSATION), |
| 2633 purple_value_new(PURPLE_TYPE_BOXED, "GList **")); |
2642 purple_value_new(PURPLE_TYPE_BOXED, "GList **")); |