From 35172a7615afa88eea20eee83634e8a07d701d5c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 11 Dec 2008 12:08:20 +0000 Subject: [PATCH] Change the binding propagation when truncating a selection If a selection has been truncated inside a key binding handler, we should just return and let the usual key event handler continue. This fixes the case where we deleted a selection using the Delete or the Backspace keys. --- clutter/clutter-text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 899c9a9cf..baec33d76 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -1274,7 +1274,7 @@ clutter_text_real_del_next (ClutterText *self, gint len; if (clutter_text_truncate_selection (self)) - return FALSE; + return TRUE; pos = priv->position; len = g_utf8_strlen (priv->text, -1); @@ -1300,7 +1300,7 @@ clutter_text_real_del_prev (ClutterText *self, gint len; if (clutter_text_truncate_selection (self)) - return FALSE; + return TRUE; pos = priv->position; len = g_utf8_strlen (priv->text, -1);