Re: scrolling a TextView



On Tue, 2005-10-18 at 09:50 +0200, Fabio Marzocca wrote:
I have a textview packed into a scrolledwindow. The textview buffer is
linked  to a pipe to display output lines from a spwned process. I
need the textview to scroll down while text is inserted in the buffer,
otherwise I can't follow the lines. In other words, how to keep in
synchro the textview with the scroll, while text is added?

gtk_text_view_scroll_to_iter(
        textview,               
        gtk_text_buffer_get_end_iter (
                 gtk_text_view_get_buffer(textview)
        );
);

-- 
Iago Rubio




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