Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
1116:35476475f794 | 1117:f3e0f41beddb |
---|---|
27 #include <unistd.h> | 27 #include <unistd.h> |
28 #include <stdio.h> | 28 #include <stdio.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
31 #include "gtkhtml.h" | 31 #include "gtkhtml.h" |
32 #include "gtkspell.h" | |
32 #include <gdk/gdkkeysyms.h> | 33 #include <gdk/gdkkeysyms.h> |
33 | 34 |
34 #include "convo.h" | 35 #include "convo.h" |
35 | 36 |
36 #include "pixmaps/tb_forward.xpm" | 37 #include "pixmaps/tb_forward.xpm" |
690 | 691 |
691 gtk_window_set_title(GTK_WINDOW(win), b->name); | 692 gtk_window_set_title(GTK_WINDOW(win), b->name); |
692 gtk_window_set_focus(GTK_WINDOW(win), chatentry); | 693 gtk_window_set_focus(GTK_WINDOW(win), chatentry); |
693 | 694 |
694 gtk_signal_connect(GTK_OBJECT(win), "destroy", GTK_SIGNAL_FUNC(close_callback),b); | 695 gtk_signal_connect(GTK_OBJECT(win), "destroy", GTK_SIGNAL_FUNC(close_callback),b); |
695 gtk_signal_connect(GTK_OBJECT(chatentry), "insert-text", GTK_SIGNAL_FUNC(check_spelling), chatentry); | |
696 gtk_signal_connect(GTK_OBJECT(chatentry), "key_press_event", GTK_SIGNAL_FUNC(entry_key_pressed), chatentry); | 696 gtk_signal_connect(GTK_OBJECT(chatentry), "key_press_event", GTK_SIGNAL_FUNC(entry_key_pressed), chatentry); |
697 if (general_options & OPT_GEN_CHECK_SPELLING) | |
698 gtkspell_attach(GTK_TEXT(chatentry)); | |
697 | 699 |
698 b->font_dialog = NULL; | 700 b->font_dialog = NULL; |
699 b->fg_color_dialog = NULL; | 701 b->fg_color_dialog = NULL; |
700 b->bg_color_dialog = NULL; | 702 b->bg_color_dialog = NULL; |
701 b->smiley_dialog = NULL; | 703 b->smiley_dialog = NULL; |