Re: Scrolling to bottom of TextView?

* Martin Junius <mj+gnome ml m-j-s net> [2005-01-10 20:11]:
    my $mark = $buf->create_mark(undef, $buf->get_end_iter, 0);

    $text_view->scroll_to_iter( $buf->get_end_iter, 0, FALSE, 0, 0 );

Although the docs note that this may not always have the desired
effect because it may be called prior to line height
recalculations. It might be better to stick this in a signal
handler, but I'm not sure if any signal qualifies. I'm also not
sure when exactly the line height might change, ie whether that
is even an issue at all for your simple use case.

*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}

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