summaryrefslogtreecommitdiff
path: root/src/nautilus-location-entry.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2006-01-11 15:22:53 +0000
committerRyan Lortie <ryanl@src.gnome.org>2006-01-11 15:22:53 +0000
commit6f55ef202be4a67d530e199071948dca35d49aae (patch)
tree6c4be2a4466b69102d1dbd056bbd3e856dd62f29 /src/nautilus-location-entry.c
parent962e4b4d066c3c9bd96a9436eee7f9ce42b04055 (diff)
downloadnautilus-6f55ef202be4a67d530e199071948dca35d49aae.tar.gz
Use strlen() instead of g_utf8_strlen() since gtk_editable_insert_text
2006-01-11 Ryan Lortie <desrt@desrt.ca> * src/nautilus-location-entry.c (try_to_expand_path): Use strlen() instead of g_utf8_strlen() since gtk_editable_insert_text takes the number of bytes (not number of characters). Fixes #324406.
Diffstat (limited to 'src/nautilus-location-entry.c')
-rw-r--r--src/nautilus-location-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index 6ede24c10..b0d967c22 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -291,7 +291,7 @@ try_to_expand_path (gpointer callback_data)
pos = user_location_length;
gtk_editable_insert_text (editable,
insert_text,
- g_utf8_strlen (insert_text, -1),
+ strlen (insert_text),
&pos);
pos = user_location_length;