mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user