1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-21 16:55:02 -05: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:
Arnavion 2015-04-25 16:51:29 -07:00
parent 0b40146b85
commit 29321c8660

View File

@ -1047,7 +1047,7 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry)
{ {
/* Check for attributes */ /* Check for attributes */
text = gtk_entry_get_text (GTK_ENTRY (entry)); 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); check_attributes (entry, text, text_len);
} }