summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-04-25 16:51:29 -0700
committerArnavion <arnavion@gmail.com>2015-04-25 16:51:29 -0700
commit29321c86600b1b3f9fa12d10b05b0434517e5e27 (patch)
tree709cd49eb20e0f5370bd125dbc0a796e3afe8d15 /src
parent0b40146b85e9017fdfe6d98bf33f622defa186db (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/sexy-spell-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c
index 61cdff3e..f57c7f41 100644
--- a/src/fe-gtk/sexy-spell-entry.c
+++ b/src/fe-gtk/sexy-spell-entry.c
@@ -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);
 	}