mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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
This commit is contained in:
parent
afb46bc382
commit
67d70899d4
@ -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):
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user