Re: [gtk-list] position of vscrollbar




-----BEGIN PGP SIGNED MESSAGE-----

Hi Sam !

Sam Tannous <stannous@cisco.com> writes:
> I've written a small application that pops
> up a new text window with a vertical scrollbar
> attached to it.  The amount of text is large
> (65k).  
> What I would like to do is set the position
> of the vertical scrollbar to show the end 
> of the text (rather then have the user 
> manually do it).  I also want to add text 
> to the bottom of the text area and keep 
> the scrolled to the bottom as I add to it.
> The closest thing I can find to do this is
> gtk_text_set_adjustments but I'm not sure
> how to use it....
> Any help would be appreciated.

You might want to take a look at the Xlogmaster source since it does
exactly that... check out the homepage at

    http://www.gnu.org/software/xlogmaster/xlogmaster.html

and find a FTP mirror near you. 

The Xlogmaster does scroll to the end of the text and then keeps the
vertical scrollbar on a constant position relative to the end of the
file...

Regards,
	Georg

- -- 
Georg C. F. Greve <greve@gnu.org>
http://porter.desy.de/~greve/ - ICQ#10016966
"People who fight may lose. People who do not
fight have already lost." -- Bertolt Brecht

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Processed

iQCVAwUBNc967VZXgZXDxqJtAQHkcgP/WRkkQNrKR9azDUp0ADKwpxlK5ftplVVT
Uv+RUstvWVfzfHS+vGymuFs9GG4On/NZUIJMv6UpG2MYbZUYsT10T9tZkMQUkHCq
+JOC9Cc5z9w9kkUu2bbg94P3ZGUuEoeBsGEqsRHYPJ22TJ6g5FEMhV7JPWKp2RKK
oE8uwkPT9aQ=
=/LPb
-----END PGP SIGNATURE-----



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