Re: GtkTextView scroll preservation



On Sat, Jan 16, 2010 at 07:40:15PM +0200, Dov Grobgeld wrote:
>    - There should be a more direct way of requesting that a certain line be
>    displayed in the textview after insertion other than playing recursive
>    tricks with the adjustment callbacks!

There is, you can create an iter corresponding to the specified line and
scroll to it.  However, in your insert_text() callback it is too early
to do this (the text has not been measured yet probably).

Yeti



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]