summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2013-03-25 15:29:37 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2013-03-25 13:31:18 -0400
commit670875d76ed212e0bb9d071ef79b56fa6dacae2a (patch)
treea6e69e2f0b04a26209d0394e0c97e6b25da50ff0
parent4688bd1ef265aa18042f5d1e099a7f440865c55b (diff)
downloadnautilus-670875d76ed212e0bb9d071ef79b56fa6dacae2a.tar.gz
eel-editable-label: Fix string length on retrieve-surrounding handler
https://bugzilla.gnome.org/show_bug.cgi?id=696532
-rw-r--r--eel/eel-editable-label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 17f7e1b47..243b655ec 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -2390,7 +2390,7 @@ eel_editable_label_retrieve_surrounding_cb (GtkIMContext *context,
{
gtk_im_context_set_surrounding (context,
label->text,
- strlen (label->text) + 1,
+ strlen (label->text),
label->selection_end);
return TRUE;