Re: [glade--] ScrolledWindow autoscrolling

Reto Bürki <[email protected]> Fri, 14 Oct 2005 19:46:06 +0200
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
Christof Petig wrote:
> Reto B=FCrki schrieb:
>=20
>>Hi List,
>>
>>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.
>>
>>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)
>=20
>=20
> why don't you just scroll to the bottom everytime you add text to the
> buffer?
>=20
>    Christof
>=20

yeah, that's what I do now...easy and works great.
thanks

reto