Re: Scrolling to bottom of TextView?
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: Scrolling to bottom of TextView?
- Date: Mon, 10 Jan 2005 22:08:22 +0100
* 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);
$gscript_textview->scroll_mark_onscreen($mark);
$buf->delete_mark($mark);
$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.
Regards,
--
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}
&Just->another->Perl->hacker;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]