gtkentryaccessible: Fix text-changed::delete length
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 15:56:38 +0000 (17:56 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 15:59:31 +0000 (17:59 +0200)
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)

gtk/a11y/gtkentryaccessible.c

index 0a629eefb76a0129651b7157115ac9a5a7decde0..30bfaabb8c96397e012a5eba164fe7683cf03cc7 100644 (file)
@@ -1426,7 +1426,7 @@ delete_text_cb (GtkEditable *editable,
   g_signal_emit_by_name (accessible,
                          "text-changed::delete",
                          start,
-                         end);
+                         end - start);
 }
 
 static gboolean