Re: [g-a-devel] exposing text using ATK
- From: Li Yuan <Li Yuan Sun COM>
- To: Mike Gorse <mgorse mgorse dhs org>
- Cc: gnome-accessibility-devel gnome org
- Subject: Re: [g-a-devel] exposing text using ATK
- Date: Fri, 21 Sep 2007 15:52:13 +0800
Hi Mike,
You can refer to gailtextutil in gail. Basically because we have a
buffer in gail, so atk-bridge can find the deleted text. gail update the
buffer after the text_changed::delete is emitted. About inserting, we
emit text_changed::insert in an idle function to let gailtextutil update
its buffer before send out the signal.
Li
On Thu, 2007-09-20 at 07:29 -0400, Mike Gorse wrote:
> When a user presses backspace, an at-spi event gets generated, and
> its
> any_data field contains the character that was just deleted. How
> does
> this happen? It is not happening with my current ATK implementation
> for
> Abiword. My understanding is that, when text is deleted, the
> application
> should emit a text_changed::delete signal with the offset and length
> of
> the deleted text. Does this need to be done before the text is
> deleted?
> (It is currently being sent afterwards; perhaps this is the problem.)
> If
> so, what about text_changed::insert signals? Should they also be
> sent
> before the text is inserted? Or is there something that I should be
> doing
> to pass the deleted character?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]