# HG changeset patch # User Sean Egan # Date 1030522438 0 # Node ID c11960537fee3bcb45c54d0975d1f42b19242796 # Parent 66c7cca774f518a47dfde465cf64aecfef093890 [gaim-migrate @ 3510] obobo committer: Tailor Script diff -r 66c7cca774f5 -r c11960537fee ChangeLog --- a/ChangeLog Wed Aug 28 07:44:46 2002 +0000 +++ b/ChangeLog Wed Aug 28 08:13:58 2002 +0000 @@ -53,6 +53,7 @@ * Option to log IMs and Chats seperately. (Thanks Etan Reisner) * Nice Oscar changes--mostly internal (Thanks Mark Doliner) + * event_del_conversation for plugins (Thanks Bill Tompkins) version 0.59 (06/24/2002): * Hungarian translation added (Thanks, Sutto Zoltan) diff -r 66c7cca774f5 -r c11960537fee plugins/SIGNALS --- a/plugins/SIGNALS Wed Aug 28 07:44:46 2002 +0000 +++ b/plugins/SIGNALS Wed Aug 28 08:13:58 2002 +0000 @@ -28,6 +28,7 @@ event_im_displayed_rcvd, event_chat_send_invite, event_got_typing, + event_del_conversation, }; To add a signal handler, call the fuction gaim_signal_connect with the @@ -331,3 +332,12 @@ 'gc' is the connection the typing is sent to. 'who' is the person typing to you. +event_del_conversation: + struct conversation *c + + This is called when a conversation window is closed. It is + called before any memory is deallocated so you are able to + access any data related to the conversation without breaking + anything. + + 'c' is he conversation being closed. diff -r 66c7cca774f5 -r c11960537fee src/conversation.c --- a/src/conversation.c Wed Aug 28 07:44:46 2002 +0000 +++ b/src/conversation.c Wed Aug 28 08:13:58 2002 +0000 @@ -258,6 +258,7 @@ void delete_conversation(struct conversation *c) { + plugin_event(event_del_conversation, c, 0, 0, 0); conversations = g_list_remove(conversations, c); if (c->fg_color_dialog) gtk_widget_destroy(c->fg_color_dialog); diff -r 66c7cca774f5 -r c11960537fee src/core.h --- a/src/core.h Wed Aug 28 07:44:46 2002 +0000 +++ b/src/core.h Wed Aug 28 08:13:58 2002 +0000 @@ -97,6 +97,7 @@ event_im_displayed_rcvd, event_chat_send_invite, event_got_typing, + event_del_conversation, /* any others? it's easy to add... */ }; diff -r 66c7cca774f5 -r c11960537fee src/module.c --- a/src/module.c Wed Aug 28 07:44:46 2002 +0000 +++ b/src/module.c Wed Aug 28 08:13:58 2002 +0000 @@ -501,6 +501,7 @@ case event_signon: case event_signoff: case event_new_conversation: + case event_del_conversation: case event_error: one = g->function; one(arg1, g->data);