summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-04 17:56:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-04 17:59:31 +0200
commit8c8cb2bb1272d4c357fad0bf8ae8ce34da30e1d3 (patch)
treeca319e0c4f1475a625a89836fa917c4800dabd49
parent67360c9d0089ea6e99f0143bf7be8384537da6da (diff)
downloadgtk+-8c8cb2bb1272d4c357fad0bf8ae8ce34da30e1d3.tar.gz
gtkentryaccessible: Fix text-changed::delete length
The second parameter of the text-changed::delete event is to be the length, not the end position. This fixes spurious text removals in brltty screen reading. (cherry picked from commit 209f908a03a9d27508704425a57dcd533fab4c7d)
-rw-r--r--gtk/a11y/gtkentryaccessible.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c
index 0a629eefb7..30bfaabb8c 100644
--- a/gtk/a11y/gtkentryaccessible.c
+++ b/gtk/a11y/gtkentryaccessible.c
@@ -1426,7 +1426,7 @@ delete_text_cb (GtkEditable *editable,
g_signal_emit_by_name (accessible,
"text-changed::delete",
start,
- end);
+ end - start);
}
static gboolean