Re: scrolling gtktextview
- From: Havoc Pennington <hp redhat com>
- To: Dennis Bjorklund <db zigo dhs org>
- Cc: <gtk-list gnome org>
- Subject: Re: scrolling gtktextview
- Date: 13 Feb 2002 11:38:45 -0500
Dennis Bjorklund <db zigo dhs org> writes:
> I add lines at the end of the textview and would like it to scroll down to
> the bottom so I can see the new lines. But I can't get it to work. I
> tried:
>
> gtk_text_buffer_get_end_iter (buf, &iter);
>
> gtk_text_view_scroll_to_iter (view, &iter, 0.0,
> FALSE, 0.0, 0.0);
>
> but the does not scroll all the way, it can leave 5-6 lines that are not
> visible after scroll. Next attempt is to have a mark in the very end of
> the buffer and doing
>
> gtk_text_view_scroll_mark_onscreen (view, mark);
>
> but this have similar problems as the first try.
It's supposed to work, can you write out a small test program that
fails, and file the bug on bugzilla.gnome.org? I will investigate.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]