GtkTextView: scrolling last line to top



Is there a way to scroll the last line of a text view to the top of the view? I tried to use the align parameter like this:

gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW(EditorTextView), &iter, 0.0, TRUE, 0.0, 0.0);

where iter points to the last line in the buffer, but the view only scrolls so that the last line is at the bottom.

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