Mercurial > pidgin
diff plugins/spellchk.c @ 6780:e9a730ad5a3c
[gaim-migrate @ 7319]
Fixed the prototypes and signal registration for displaying-im-msg,
displayed-im-msg, displaying-chat-msg, and displayed-chat-msg. This fixes
the text replacement plugin (with a minor change or two there as well).
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 07 Sep 2003 20:02:45 +0000 |
| parents | b0913ab92893 |
| children | 3c885e6784ee |
line wrap: on
line diff
--- a/plugins/spellchk.c Sun Sep 07 16:22:58 2003 +0000 +++ b/plugins/spellchk.c Sun Sep 07 20:02:45 2003 +0000 @@ -31,7 +31,7 @@ static void substitute(char **, int, int, const char *); static GtkListStore *model; -static void +static gboolean substitute_words(GaimAccount *account, GaimConversation *conv, char **message, void *data) { @@ -40,7 +40,7 @@ char *tmp; if (message == NULL || *message == NULL) - return; + return FALSE; l = num_words(*message); for (i = 0; i < l; i++) { @@ -69,6 +69,8 @@ } while(gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &iter)); } } + + return FALSE; } static int buf_get_line(char *ibuf, char **buf, int *position, int len) { @@ -382,9 +384,9 @@ load_conf(); - gaim_signal_connect(conv_handle, "sending-im-msg", + gaim_signal_connect(conv_handle, "displaying-im-msg", plugin, GAIM_CALLBACK(substitute_words), NULL); - gaim_signal_connect(conv_handle, "sending-chat-msg", + gaim_signal_connect(conv_handle, "displaying-chat-msg", plugin, GAIM_CALLBACK(substitute_words), NULL); return TRUE;
