Fixed pango attributes not being applied in some cases.
gtk_entry_get_text_length returns the number of utf-8 characters in the GtkEntry, not the number of bytes in its text.
This commit is contained in:
parent
0b40146b85
commit
29321c8660
@ -1047,7 +1047,7 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry)
|
||||
{
|
||||
/* Check for attributes */
|
||||
text = gtk_entry_get_text (GTK_ENTRY (entry));
|
||||
text_len = gtk_entry_get_text_length (GTK_ENTRY (entry));
|
||||
text_len = strlen (text);
|
||||
check_attributes (entry, text, text_len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user