diff options
author | Li Yuan <li.yuan@sun.com> | 2008-06-10 05:40:42 +0000 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2008-06-10 05:40:42 +0000 |
commit | 67d70899d497c4cd67a12df515fa0d791907518e (patch) | |
tree | d3621adcf647acc44d87cf989d7117b048e37bf3 /modules | |
parent | afb46bc3825c43c70534fa42a7254b5a50928667 (diff) | |
download | gtk+-67d70899d497c4cd67a12df515fa0d791907518e.tar.gz |
Automatically scroll text caret to make it visible, when AT sets its
2008-06-10 Li Yuan <li.yuan@sun.com>
* gailtextview.c: (gail_text_view_set_caret_offset):
Automatically scroll text caret to make it visible, when AT
sets its offset.
svn path=/trunk/; revision=20344
Diffstat (limited to 'modules')
-rw-r--r-- | modules/other/gail/ChangeLog | 6 | ||||
-rw-r--r-- | modules/other/gail/gailtextview.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog index 3944f975e8..8dc252ff80 100644 --- a/modules/other/gail/ChangeLog +++ b/modules/other/gail/ChangeLog @@ -1,3 +1,9 @@ +2008-06-10 Li Yuan <li.yuan@sun.com> + + * gailtextview.c: (gail_text_view_set_caret_offset): + Automatically scroll text caret to make it visible, when AT + sets its offset. + 2008-06-06 Li Yuan <li.yuan@sun.com> * gail/gaillabel.c: (gail_label_real_notify_gtk): diff --git a/modules/other/gail/gailtextview.c b/modules/other/gail/gailtextview.c index ea86ea7a73..f8759cf29d 100644 --- a/modules/other/gail/gailtextview.c +++ b/modules/other/gail/gailtextview.c @@ -496,6 +496,7 @@ gail_text_view_set_caret_offset (AtkText *text, gtk_text_buffer_get_iter_at_offset (buffer, &pos_itr, offset); gtk_text_buffer_place_cursor (buffer, &pos_itr); + gtk_text_view_scroll_to_iter (view, &pos_itr, 0, FALSE, 0, 0); return TRUE; } |