Mercurial > pidgin.yaz
changeset 8673:5891a1a6fc7e
[gaim-migrate @ 9425]
(10:55:19) nosnilmot: LSchiere: at least part of that spellchk patch looks
wrong - why connect to all 3 of writing-im, writing-chat and sending-im ?
writing-* is supposed to allow changing the message before it is either
displayed or sent...
(10:56:53) nosnilmot: LSchiere: and I can't reproduce the problem described
in the patch/bug report (both sent and displayed are actually replaced) -
KingAnt already fixed this once
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 16 Apr 2004 14:58:10 +0000 |
parents | 142108e89399 |
children | 8c7da2e36136 |
files | plugins/spellchk.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/spellchk.c Fri Apr 16 14:39:34 2004 +0000 +++ b/plugins/spellchk.c Fri Apr 16 14:58:10 2004 +0000 @@ -214,14 +214,16 @@ static void substitute(char **mes, int pos, int m, const char *text) { char *new = g_malloc(strlen(*mes) + strlen(text) + 1); + char *tmp; new[0] = 0; strncat(new, *mes, pos); strcat(new, text); strcat(new, &(*mes)[pos + m]); - g_free(*mes); + tmp = *mes; *mes = new; + g_free(tmp); } static GtkWidget *tree; @@ -388,8 +390,6 @@ plugin, GAIM_CALLBACK(substitute_words), NULL); gaim_signal_connect(conv_handle, "writing-chat-msg", plugin, GAIM_CALLBACK(substitute_words), NULL); - gaim_signal_connect(conv_handle, "sending-im-msg", - plugin, GAIM_CALLBACK(substitute_words), NULL); return TRUE; }