[gtk/gtk-3-22: 1/2] gtkentryaccessible: Fix text-changed::delete length



commit 209f908a03a9d27508704425a57dcd533fab4c7d
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Wed Apr 4 17:56:38 2018 +0200

    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.

 gtk/a11y/gtkentryaccessible.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c
index d66d988a68..450194ca19 100644
--- a/gtk/a11y/gtkentryaccessible.c
+++ b/gtk/a11y/gtkentryaccessible.c
@@ -1433,7 +1433,7 @@ delete_text_cb (GtkEditable *editable,
   g_signal_emit_by_name (accessible,
                          "text-changed::delete",
                          start,
-                         end);
+                         end - start);
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]