fixed bug that could crash Sylpheed when highlighting all misspelled words.
[claws.git] / src / gtkspell.c
index aaa226c2b42917072efe48d0e5d553c263893e73..9e032f149ff0ec7605e5dccf8577bddad1cbe3d2 100644 (file)
@@ -1103,8 +1103,6 @@ void gtkpspell_highlight_all(GtkPspell *gtkpspell)
 
        len = gtk_stext_get_length(gtktext);
 
-       gtk_stext_freeze(gtktext);
-
        origpos = gtk_editable_get_position(GTK_EDITABLE(gtktext));
 
 /*     gtk_editable_set_position(GTK_EDITABLE(gtktext), 0);*/
@@ -1119,7 +1117,6 @@ void gtkpspell_highlight_all(GtkPspell *gtkpspell)
                if (pos > 0)
                        check_at(gtkpspell, pos - 1);
        }
-       gtk_stext_thaw(gtktext);
        gtk_editable_set_position(GTK_EDITABLE(gtktext), origpos);
        gtk_stext_set_point(GTK_STEXT(gtktext), origpos);
        gtk_adjustment_set_value(gtktext->vadj, adj_value);