Re: [orca-list] AtkText interfaces





On 20/10/17 20:31, Mike Gorse wrote:
Hi,

On Fri, 20 Oct 2017, Joanmarie Diggs wrote:

I would have to check, but I thought that AT-SPI2 was mapping the new
ATK API to the existing/old API. Is that not the case?

I just looked through the code in at-spi2-atk--if, say, orca calls
GetStringAtOffset, then at-spi2-atk will fall back to calling
atk_text_get_text_at_offset if the atk implementation doesn't
implement get_string_at_offset, but we aren't mapping the other way
around (calling atk_text_get_string_at_offset if AT-SPI is called with
the deprecated function). Maybe we should be.

I don't see too much value on that. We want to encourage people to stop
to use the deprecated methods. So if there is a working implementation
of the new method, I don't think that it is worth to ensure that the old
methods work.

And in fact, probably that mapping is not possible. The new API is more
simple (on purpose). Just one method (vs 3) and 5 text granularities (vs
7), so I don't think that we can express all the old API combinations
with the new API. And as I say, I think that we also don't want that.

BR



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