2003-09-22 Tim Wo <tim.wo@sun.com>
* gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): some checking
code added to ensure that end_offset and start_offset both belong
to [0, length of the text] and end_offset >= start_offset or it
will lead to a crash
(et_get_caret_offset):no need to deal with character encoding
here, since the widget has already delt with it.
(et_get_selection): dealing with character encoding and ensure
end_offset >= start_offset, or it will lead to a crash
(et_add_selection): we can not get the ETextEventProcessor here,
so the old implementation leads to a crash. Modify the parameters
"selection_start" and "selection_end" directly instead
(et_remove_selection): implementation added
(et_set_selection): implementation added
(et_set_caret_offset): no need to deal with character encoding
here, since the widget has already delt with it. Another change
is when offset == -1, move the caret to the end of the text,
this keeps the same behavior as GailTextview
svn path=/trunk/; revision=22685