GNOME Bugzilla – Bug 248171
gok's word+, word- do not work well in composer
Last modified: 2009-08-21 03:23:21 UTC
Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: Steps to reproduce the problem: 1. start evolution with accessibility, open new mail composer, write a string into it, e.g., "123456789 123456789 123456789 ". 2. then start gok, select compose/text manipulation from the gok panel 3. use word+ to forward. Actual Results: word+ can only succeed when move from first to second word, failed to move to the 3rd. Expected Results: should always ok How often does this happen? Additional Information:
the implementation of interface atk_text_get_text_at_offset() use the GailTextUtil to accomplish the task. The GailTextUtil is initialized when the atk text object is created. So when the atk text object is created, it may be only "123456789". So the GtkTextBuffer used by GailTextUtil is also initialized to be "123456789". Later text is changed in composer, but GailTextUtil will not be refreshed. Thus the problem. My fix is just to refresh the buffer according to the text object each time the interface is called.
Created attachment 42887 [details] [review] patch for review
fixed in cvs.
This bug was marked RESOLVED without a resolution, which Bugzilla does not allow (and so I am fixing it). It is assumed that the bug was intended to be marked as FIXED. If the bug should have some other resolution, please change its resolution.