diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-09-19 09:48:03 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-09-19 11:57:56 +0200 |
commit | 59717161953e891d4b97ba54a81dd8c173c091f0 (patch) | |
tree | 89d8317e19380de6848e4c9932ccf31505be8d96 /shell/source/win32/simplemail/smplmail.component | |
parent | 7da503470666bbcf2062e60fd4796f7316ac14f8 (diff) |
Implement the new GtkAccessibleTextInterface methods
to set the text caret or text selection which was
added in upstream commit [1]
commit b747f87516e6feee8803452e002840dc204e6102
Author: Matthias Clasen <mclasen@redhat.com>
Date: Thu Sep 4 21:27:16 2025 +0200
accessibletext: Add setters
Add set_caret_position and set_selection, so we can implement
these parts of the atspi text interface.
Fixes #7739
Part-of: <https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/8914>
With gtk git main and an additional related pending GTK 4
merge request to fix a crash [2], this makes setting
selection and cursor positing using the AT-SPI work
as expected.
Sample scenario:
1) start Writer
2) type "test123"
3) start Accerciser
4) select the paragraph's accessible object in Accerciser's
treeview of the LO a11y tree
5) Use the API via Accerciser's IPython console:
In [17]: t = acc.queryText()
In [18]: t.setCaretOffset(4)
Out[18]: True
In [19]: t.setSelection(0, 1, 3)
Out[19]: True
In [20]: t.getSelection(0)
Out[20]: (1, 3)
[1] https://gitlab.gnome.org/GNOME/gtk/-/commit/b747f87516e6feee8803452e002840dc204e6102
[2] https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/8950
Change-Id: I31ad6d628c34b5ba3a5b46696448855a86caff72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191179
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'shell/source/win32/simplemail/smplmail.component')
0 files changed, 0 insertions, 0 deletions