Re: Writing to a buffer



On Friday 05 August 2005 16:05, Jonathan Hayward wrote:

> It's now manifesting a different problem. I can write at the end of a
> text_buffer inside a text_view, but not tell it to scroll down. The last
> two calls are meant to scroll all the way down:
>  ...
> gtk_text_buffer_get_end_iter(GTK_TEXT_BUFFER(pmsg_buffer), &iterator);
> gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(pmsg_text_view), &iterator,
> 0.0f, 1, 0.0f, 1.0f);
>
> Any obvious mistakes in this?

You probably need to use _scroll_to_mark(), see question 4.3:

http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html

Cheers
 -Tim



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