talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 80a3551276cc18ab9db13accbf367e50c83e87ed
parent 7481d7b98ca65bc6d4009666407c06db5b836345
Author: Paweł Pękala <c0rn@gazeta.pl>
Date:   Fri,  4 Dec 2009 17:45:19 +0000

2009-12-04 [pawel]	3.7.3cvs31

	* src/compose.c
		Highlight misspelled words when applying template and
		check_while_typing option is on

Diffstat:
MChangeLog | 6++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/compose.c | 17+++++++++++++++++
4 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-04 [pawel] 3.7.3cvs31 + + * src/compose.c + Highlight misspelled words when applying template and + check_while_typing option is on + 2009-12-03 [pawel] 3.7.3cvs30 * src/compose.c diff --git a/PATCHSETS b/PATCHSETS @@ -3904,3 +3904,4 @@ ( cvs diff -u -r 1.382.2.527 -r 1.382.2.528 src/compose.c; ) > 3.7.3cvs28.patchset ( cvs diff -u -r 1.382.2.528 -r 1.382.2.529 src/compose.c; ) > 3.7.3cvs29.patchset ( cvs diff -u -r 1.382.2.529 -r 1.382.2.530 src/compose.c; ) > 3.7.3cvs30.patchset +( cvs diff -u -r 1.382.2.530 -r 1.382.2.531 src/compose.c; ) > 3.7.3cvs31.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=3 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=30 +EXTRA_VERSION=31 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/compose.c b/src/compose.c @@ -1142,6 +1142,10 @@ Compose *compose_generic_new(PrefsAccount *account, const gchar *mailto, FolderI quote_fmt_reset_vartable(); g_free(tmp); +#ifdef USE_ENCHANT + if (compose->gtkaspell->check_while_typing) + gtkaspell_highlight_all(compose->gtkaspell); +#endif } } @@ -1601,6 +1605,10 @@ static Compose *compose_generic_reply(MsgInfo *msginfo, _("The body of the \"Reply\" template has an error at line %d.")); compose_attach_from_list(compose, quote_fmt_get_attachments_list(), FALSE); quote_fmt_reset_vartable(); +#ifdef USE_ENCHANT + if (compose->gtkaspell->check_while_typing) + gtkaspell_highlight_all(compose->gtkaspell); +#endif } if (MSG_IS_ENCRYPTED(compose->replyinfo->flags)) { @@ -1793,6 +1801,10 @@ Compose *compose_forward(PrefsAccount *account, MsgInfo *msginfo, compose_attach_parts(compose, msginfo); procmsg_msginfo_free(full_msginfo); +#ifdef USE_ENCHANT + if (compose->gtkaspell->check_while_typing) + gtkaspell_highlight_all(compose->gtkaspell); +#endif } SIGNAL_BLOCK(textbuf); @@ -8079,6 +8091,11 @@ static void compose_template_apply(Compose *compose, Template *tmpl, compose_attach_from_list(compose, quote_fmt_get_attachments_list(), FALSE); quote_fmt_reset_vartable(); compose_changed_cb(NULL, compose); + +#ifdef USE_ENCHANT + if (compose->gtkaspell->check_while_typing) + gtkaspell_highlight_all(compose->gtkaspell); +#endif } static void compose_template_apply_fields(Compose *compose, Template *tmpl)