[Commits] gtkaspell.c 1.9.2.73 1.9.2.74 gtkaspell.h 1.5.2.18 1.5.2.19
colin at claws-mail.org
colin at claws-mail.org
Tue Nov 1 21:29:33 CET 2011
Update of /home/claws-mail/claws/src/gtk
In directory claws-mail:/tmp/cvs-serv27937/src/gtk
Modified Files:
Tag: gtk2
gtkaspell.c gtkaspell.h
Log Message:
2011-11-01 [colin] 3.7.10cvs67
* src/compose.c
* src/main.c
* src/common/utils.c
* src/gtk/gtkaspell.c
* src/gtk/gtkaspell.h
Fix huge slowness induced by spellcheck "while typing"
during initial quote rewraps.
Index: gtkaspell.h
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkaspell.h,v
retrieving revision 1.5.2.18
retrieving revision 1.5.2.19
diff -u -d -r1.5.2.18 -r1.5.2.19
--- gtkaspell.h 26 Apr 2009 10:31:28 -0000 1.5.2.18
+++ gtkaspell.h 1 Nov 2011 20:29:31 -0000 1.5.2.19
@@ -169,6 +169,8 @@
void gtkaspell_dict_changed (GtkAspell *gtkaspell);
void gtkaspell_context_set (GtkAspell *gtkaspell);
void gtkaspell_free_suggestions_list (GtkAspell *gtkaspell);
+void gtkaspell_block_check (GtkAspell *gtkaspell);
+void gtkaspell_unblock_check (GtkAspell *gtkaspell);
#endif /* USE_ENCHANT */
Index: gtkaspell.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkaspell.c,v
retrieving revision 1.9.2.73
retrieving revision 1.9.2.74
diff -u -d -r1.9.2.73 -r1.9.2.74
--- gtkaspell.c 7 Oct 2011 09:17:50 -0000 1.9.2.73
+++ gtkaspell.c 1 Nov 2011 20:29:31 -0000 1.9.2.74
@@ -1188,6 +1188,28 @@
set_point_continue(gtkaspell);
}
+void gtkaspell_block_check(GtkAspell *gtkaspell)
+{
+ GtkTextView *gtktext = gtkaspell->gtktext;
+ g_signal_handlers_block_by_func(G_OBJECT(gtktext),
+ G_CALLBACK(entry_insert_cb),
+ gtkaspell);
+ g_signal_handlers_block_by_func(G_OBJECT(gtktext),
+ G_CALLBACK(entry_delete_cb),
+ gtkaspell);
+}
+
+void gtkaspell_unblock_check(GtkAspell *gtkaspell)
+{
+ GtkTextView *gtktext = gtkaspell->gtktext;
+ g_signal_handlers_unblock_by_func(G_OBJECT(gtktext),
+ G_CALLBACK(entry_insert_cb),
+ gtkaspell);
+ g_signal_handlers_unblock_by_func(G_OBJECT(gtktext),
+ G_CALLBACK(entry_delete_cb),
+ gtkaspell);
+}
+
static void replace_real_word(GtkAspell *gtkaspell, const gchar *newword)
{
int oldlen, newlen, wordlen;
More information about the Commits
mailing list