changeset 7002:57ea8be4ff4a

[gaim-migrate @ 7558] All this GtkSpell talk is making me hungry. I mean, making me remember I wanted this. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 29 Sep 2003 00:11:05 +0000
parents 7b372ecdbd8d
children 687fafe937d6
files src/dialogs.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Sun Sep 28 23:56:23 2003 +0000
+++ b/src/dialogs.c	Mon Sep 29 00:11:05 2003 +0000
@@ -1760,6 +1760,10 @@
 
 	b->text = gtk_text_view_new();
 	gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(b->text), GTK_WRAP_WORD_CHAR);
+#ifdef USE_GTKSPELL
+ 	if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck"))
+		gtkspell_new_attach(GTK_TEXT_VIEW(b->text), NULL, NULL);
+#endif
 	gtk_widget_set_size_request(b->text, 300, 200);
 
 	if ((user_info = gaim_account_get_user_info(account)) != NULL) {
@@ -2824,6 +2828,11 @@
 	ca->text = gtk_text_view_new();
 	gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(ca->text), GTK_WRAP_WORD_CHAR);
 
+#ifdef USE_GTKSPELL
+ 	if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck"))
+		gtkspell_new_attach(GTK_TEXT_VIEW(ca->text), NULL, NULL);
+#endif
+
 	gtk_container_add(GTK_CONTAINER(frame), ca->text);
 
 	if (dummy) {