diff src/conversation.c @ 1133:0dc7c7b4f8ca

[gaim-migrate @ 1143] No more problem w/ HTML tags getting messed up due to spell checker. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sat, 25 Nov 2000 00:31:59 +0000
parents f3e0f41beddb
children b1454d019277
line wrap: on
line diff
--- a/src/conversation.c	Fri Nov 24 03:49:46 2000 +0000
+++ b/src/conversation.c	Sat Nov 25 00:31:59 2000 +0000
@@ -847,6 +847,11 @@
 	int temp, pos = GTK_EDITABLE(entry)->current_pos;
 	int dummy;
 	int start, finish;
+
+	if (general_options & OPT_GEN_CHECK_SPELLING) {
+		gtkspell_detach(GTK_TEXT(entry));
+	}
+
 	if (GTK_EDITABLE(entry)->has_selection) {
 		remove_tags(entry, pre);
 		remove_tags(entry, post);
@@ -878,6 +883,11 @@
 			gtk_editable_set_position(GTK_EDITABLE(entry), pos);
 		}
 	}
+	
+	if (general_options & OPT_GEN_CHECK_SPELLING) {
+		gtkspell_attach(GTK_TEXT(entry));
+	}
+	
 	gtk_widget_grab_focus(entry);
 }
 
@@ -956,10 +966,12 @@
 {
 	if (state_lock)
 		return;
+	
 	if (GTK_TOGGLE_BUTTON(strike)->active)
 		surround(entry, "<STRIKE>","</STRIKE>");
 	else
 		advance_past(entry, "<STRIKE>", "</STRIKE>");
+
 }
 
 void do_bold(GtkWidget *bold, GtkWidget *entry)