Mercurial > pidgin
changeset 11956:c8b8d4f8d070
[gaim-migrate @ 14247]
sf patch #1346502, from Levi Bard
"Make text repl attach to existing conversations on load"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 03 Nov 2005 04:40:52 +0000 |
parents | e094639ab422 |
children | 7584cc821c19 |
files | plugins/spellchk.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/spellchk.c Wed Nov 02 13:43:50 2005 +0000 +++ b/plugins/spellchk.c Thu Nov 03 04:40:52 2005 +0000 @@ -1922,9 +1922,16 @@ plugin_load(GaimPlugin *plugin) { void *conv_handle = gaim_conversations_get_handle(); + GList *convs; load_conf(); + /* Attach to existing conversations */ + for (convs = gaim_get_conversations(); convs != NULL; convs = convs->next) + { + spellchk_new_attach((GaimConversation *)convs->data); + } + gaim_signal_connect(conv_handle, "conversation-created", plugin, GAIM_CALLBACK(spellchk_new_attach), NULL);