aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/e-text
Commit message (Collapse)AuthorAgeFilesLines
* make sure the declation is at the beginning of the block.Larry Ewing2003-10-121-1/+2
| | | | | | | | | 2003-10-11 Larry Ewing <lewing@ximian.com> * gal/a11y/e-text/ChangeLog: make sure the declation is at the beginning of the block. svn path=/trunk/; revision=22868
* set the role of the atk object in the initialization function ofTim Wo2003-10-102-25/+496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-27 Tim Wo <tim.wo@sun.com> * gal/a11y/e-text/gal-a11y-e-text-factory.c (gal_a11y_e_text_factory_create_accessible): set the role of the atk object in the initialization function of GalA11yEText * gal/a11y/e-text/gal-a11y-e-text.c (is_a_seperator), (find_word_start), (find_word_end), (find_sentence_start), (find_sentence_end), (find_line_start), (find_line_end): 7 new private functions, They are all used by text retrieving functions below. (et_get_text_after_offset): implementation added (et_get_text_at_offset): implementation added (et_get_text_before_offset): implementation added (et_get_character_extents): implementation added (et_get_offset_at_point): implementation added (et_set_caret_offset): use command to modify the cursor position, so that we can be notified and emit "text-caret-moved" signal in function _et_command_cb. (_et_reposition_cb): new function to emit "text-changed" signal for the atk object (_et_command_cb): new function to emit "text-caret-moved" and "text-selection-changed" signals for the atk object (et_real_initialize): new function to deal with initialization of GalA11yEText. It set some signal callbacks and the atk role of the atk object (set GalA11yEText's role to ATK_ROLE_TEXT). (et_class_init): override the virtual function "initialize" in baseclass (AtkObject) with "et_real_initialize" svn path=/trunk/; revision=22856
* some checking code added to ensure that end_offset and start_offset bothTim Wo2003-09-241-45/+118
| | | | | | | | | | | | | | | | | | | | | | | | 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
* make the code be compliant with C89, or it can't be compiled on solaris.Tim Wo2003-09-181-12/+59
| | | | | | | | | | | | | 2003-09-13 Tim Wo <tim.wo@sun.com> * gal/a11y/e-text/gal-a11y-e-text.c (et_insert_text): make the code be compliant with C89, or it can't be compiled on solaris. (et_copy_text): implementation added (et_cut_text): implementation added (et_delete_text): implementation added (et_paste_text): implementation added svn path=/trunk/; revision=22606
* GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject.Tim Wo2003-09-122-2/+4
| | | | | | | | | | | | | 2003-09-08 Tim Wo <tim.wo@sun.com> * gal/a11y/e-text/gal-a11y-e-text-factory.h: GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject. (#47097). * gal/a11y/e-text/gal-a11y-e-text.c (et_class_init): Set value for "component_parent_iface". (#47097) * gal/e-text/e-text.c (e_text_class_init): Added registration code for GalA11yETextFactory. (#47097) svn path=/trunk/; revision=22551
* gal a11y work from claheyChris Toshok2002-11-305-0/+694
svn path=/trunk/; revision=18959