NSAXSpy/NSAXSpy/main.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit fe19c2d72aeb763e6d7cbc970b6bebe5cf6ae22a Author: Boris Dušek <m...@dusek.me> Date: Sat Sep 7 11:46:25 2013 +0200 Adjust NSAXSpy for current TextMate version. The code for finding the TextMate text component was written before TextMate's text component was added to a group with related elements. So it now has to be adjusted to find that group before finding the scroll area containing the text component. Change-Id: Ib1aa2ecb0fa3a206b50c23362f4f83183f1630f7 Reviewed-on: https://gerrit.libreoffice.org/5854 Reviewed-by: Boris Dušek <m...@dusek.me> Tested-by: Boris Dušek <m...@dusek.me> diff --git a/NSAXSpy/NSAXSpy/main.m b/NSAXSpy/NSAXSpy/main.m index 47490f1..6afc20d 100644 --- a/NSAXSpy/NSAXSpy/main.m +++ b/NSAXSpy/NSAXSpy/main.m @@ -128,9 +128,11 @@ static AXError findTextMateTextComponent(AXObserverCallback callback, AXObserver AXError err = kAXErrorSuccess; AX_APPLICATION(@"TextMate", TextMate, callback, observer) { AX_CHILD(TextMate, Window, 0, window) { - AX_CHILD(window, ScrollArea, 0, scrollArea) { - AX_CHILD(scrollArea, TextArea, 0, textArea) { - *component = textArea; + AX_CHILD(window, Group, 0, group) { + AX_CHILD(group, ScrollArea, 0, scrollArea) { + AX_CHILD(scrollArea, TextArea, 0, textArea) { + *component = textArea; + } } } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits