Thanks. With your example I somehow managed to get solve it, though I feel the solution is quite ugly:
Dov
- 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!
- Even though I'm doing one atomic insertion of the entire contents of the text buffer through gtk_text_buffer_set_text() there are several callbacks to to the adjustments taking place, each one causing a redraw of the scrollbars and probably of the text view as well.
Dov
On Fri, Jan 15, 2010 at 13:34, John Stowers <john.stowers.lists@xxxxxxxxx> wrote:
On Fri, 2010-01-15 at 10:30 +0200, Dov Grobgeld wrote:Here is an example I wrote/borrowed (python)
> I'm using a GtkTextView to display various texts that are changing but
> have the same length. The problem is that I would like to preserve
> the scroll position when changing the text, but so far I haven't
> managed to do that. Here is a test program:
http://github.com/nzjrs/wasp/blob/master/sw/groundstation/gs/ui/log.py
John
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list