gtktextviewaccessible: update cursor position after text suppression
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 16:18:29 +0000 (18:18 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 Apr 2018 16:26:55 +0000 (18:26 +0200)
commita1f206b802a652bc495d479fb4b27b1f175182eb
tree04a9f2263917a7bfd1e7017e6182e2780a112ee7
parent67360c9d0089ea6e99f0143bf7be8384537da6da
gtktextviewaccessible: update cursor position after text suppression

delete_range_cb is set to be called before the text suppression done by
the gtktextlayout (otherwise it does not work properly). But at that
point the cursor position is not yet up to date.  We thus need to move
the accessibility cursor notification to after the actual text
suppression, by using another callback.

This fixes cursor position in brltty screen reading.

(cherry picked from commit fa6994d0331a219e85dce01007b2d6f3f7fd43c9)
gtk/a11y/gtktextviewaccessible.c