+2009-07-09 [colin] 3.7.2cvs4
+
+ * src/gtk/spell_entry.c
+ Fix bug 1949, 'Spell checker doesn't recognise
+ certain word in Subject header, but does in
+ message body'. Patch by Pawel Pekala.
+
2009-07-09 [paul] 3.7.2cvs3
* configure.ac
( cvs diff -u -r 1.1.2.20 -r 1.1.2.21 tools/claws.i18n.status.pl; ) > 3.7.2cvs1.patchset
( cvs diff -u -r 1.16.2.37 -r 1.16.2.38 src/prefs_customheader.c; ) > 3.7.2cvs2.patchset
( cvs diff -u -r 1.654.2.3896 -r 1.654.2.3897 configure.ac; ) > 3.7.2cvs3.patchset
+( cvs diff -u -r 1.1.2.7 -r 1.1.2.8 src/gtk/spell_entry.c; ) > 3.7.2cvs4.patchset
return ret;
}
+static gboolean is_word_end (GtkEntry *entry, const int offset)
+{
+ gchar *p = gtk_editable_get_chars(GTK_EDITABLE(entry), offset, offset+1);
+ gunichar ch;
+
+ ch = g_utf8_get_char(p);
+ g_free(p);
+
+ if (ch == '\0')
+ return TRUE;
+
+ if (ch == '\'') {
+ p = gtk_editable_get_chars(GTK_EDITABLE(entry), offset+1, offset+2);
+ ch = g_utf8_get_char(p);
+ g_free(p);
+
+ return (g_unichar_isspace(ch) || g_unichar_ispunct(ch)
+ || g_unichar_isdigit(ch));
+ }
+
+ return (g_unichar_isspace(ch) || g_unichar_ispunct(ch));
+}
+
static void entry_strsplit_utf8(GtkEntry *entry, gchar ***set, gint **starts, gint **ends)
{
PangoLayout *layout;
/* Find the end of this string */
cend = i;
- while (!(log_attrs[cend].is_word_end))
+ while (!is_word_end(entry, cend))
cend++;
/* Copy sub-string */