Re: [glade--] ScrolledWindow autoscrolling

Christof Petig <[email protected]> Fri, 14 Oct 2005 17:20:43 +0200
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1703675082==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig0499FFEFA82C46CA544A60F6"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0499FFEFA82C46CA544A60F6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Reto B=FCrki schrieb:
> Hi List,
>=20
> I know this topic has been discussed a few times all over the different=

> gtk related lists :) but still I can't find a suitable solution.
>=20
> What I have is a Gtk::TextView inside a Gtk::ScrolledWindow, the usual
> combo when you insert a TextView in glade-2. The TextView widget is use=
d
> to display chat-text inside a chat client and should therefore scroll
> automatically as soon as the text has a certain length. what is the
> appropriate way to do this? I'm using glademm (2.6.0) with glade-2
> (2.6.8) and gtkmm (2.4.11). which signal do I have to catch and where?
> it is clear to me that I have to call the set_hadjustment and
> set_vadjustment functions of the ScrolledWindow widget...but I have
> difficulties to find the correct signal to catch...and where to catch
> the signal (child or inside the ScrolledWindow)

why don't you just scroll to the bottom everytime you add text to the
buffer?

   Christof


--------------enig0499FFEFA82C46CA544A60F6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDT8zLng+R+0ucfO0RArK5AKCM0eWCGXSm7hX4Z1XuCI56P2kCrgCePJ/q
pV4wZwp0kZ78lH8aVuTknxA=
=b9a/
-----END PGP SIGNATURE-----

--------------enig0499FFEFA82C46CA544A60F6--

--===============1703675082==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
glademm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/glademm-list

--===============1703675082==--