mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-24 21:55:38 +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:
1 parent
0b40146b85
commit
29321c8660
1 file changed
+1
-1
@@ -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