Mercurial > pidgin.yaz
diff src/buddy_chat.c @ 1117:f3e0f41beddb
[gaim-migrate @ 1127]
Removed the old, crappy spellchecker code; replaced to use gtkspell. works much better. got gtkspell.[ch] out of gtkspell's cvs repository.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 21 Nov 2000 09:50:31 +0000 |
parents | c73736fa0b7c |
children | 90bb83cafb9e |
line wrap: on
line diff
--- a/src/buddy_chat.c Tue Nov 21 01:11:27 2000 +0000 +++ b/src/buddy_chat.c Tue Nov 21 09:50:31 2000 +0000 @@ -29,6 +29,7 @@ #include <stdlib.h> #include <gtk/gtk.h> #include "gtkhtml.h" +#include "gtkspell.h" #include <gdk/gdkkeysyms.h> #include "convo.h" @@ -692,8 +693,9 @@ gtk_window_set_focus(GTK_WINDOW(win), chatentry); gtk_signal_connect(GTK_OBJECT(win), "destroy", GTK_SIGNAL_FUNC(close_callback),b); - gtk_signal_connect(GTK_OBJECT(chatentry), "insert-text", GTK_SIGNAL_FUNC(check_spelling), chatentry); gtk_signal_connect(GTK_OBJECT(chatentry), "key_press_event", GTK_SIGNAL_FUNC(entry_key_pressed), chatentry); + if (general_options & OPT_GEN_CHECK_SPELLING) + gtkspell_attach(GTK_TEXT(chatentry)); b->font_dialog = NULL; b->fg_color_dialog = NULL;