Re: GtkEntry And AtkText
- From: Bill Haneman <bill haneman ireland sun com>
- To: "Padraig O'Briain" <Padraig Obriain Sun COM>
- Cc: marc mulcahy Sun COM, gnome-accessibility-list gnome org
- Subject: Re: GtkEntry And AtkText
- Date: Thu, 26 Apr 2001 14:38:50 +0100
Padraig O'Briain wrote:
>
> Marc,
>
> The current position in a GtkEntry is obtainable as the property
> "text_position". This is the current position of the insertion point.
>
> We could probably implement interfaces when AtkTextBoundary is
> ATK_TEXT_BOUNDARY_CHAR or ATK_TEXT_BOUNDARY_CURSOR_POS but it is likely to be
> more challenging for the other text boundary values.
Yep, though I think GtkEntry is a single-line entry field, so it
should be easy to do ATK_TEXT_BOUNDARY_LINE...
My vote is that for a widget like this we just return the line if the
"sentence" is asked for,
and use "whitespace" for word delimiters; it's incorrect but I think
we could live with that and file a bug against GtkEntry asking it to
use pango in future... so someday it would work as expected.
As for "what's whitespace" we could use ASCII space and TAB, plus for
gunichars we could check for presence of the unicode "is whitespace"
property.
-Bill
> I am not sure why there is a reference to GtkText as I under that it was
> deprecated and we were not going to support it.
>
> Padraig
--
--------------
Bill Haneman
Gnome Accessibility / Batik SVG Toolkit
Sun Microsystems Ireland
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]