[Gazpacho] problem with 'changed' signal for textview
Jason Pepas
cell at ices.utexas.edu
Wed Jul 20 15:27:18 CEST 2005
Thanks. I am new to gtk, so it is subtleties like that which I miss.
-jason pepas
On Wed, Jul 20, 2005 at 09:38:39AM -0300, Johan Dahlin wrote:
> >I can't seem to get the 'changed' signal to work with a textview.
> >
> >I have attached an example which demonstrates the problem. It produces
> >the following error:
>
> There is no changed signal for the textview, the signal is the textbuffer.
> Unfortunately gazpacho does not support creation of a textbuffer, so you
> have to fetch it from the textview on startup, eg:
>
> buffer = self.textview.get_buffer()
> buffer.connect('changed', self.on_buffer__changed)
>
> --
> Johan Dahlin <jdahlin at async.com.br>
> Async Open Source
>
>
> begin:vcard
> fn:Johan Dahlin
> n:Dahlin;Johan
> org:Async Open Source;Development
> adr;quoted-printable:Jardim Macarengo;;Rua Orlando Damiano, 2212;S=C3=A3o Carlos;SP;13560-450;Brazil
> email;internet:jdahlin at async.com.br
> title:Software developer
> tel;work:+55 16 3376 0125
> tel;fax:+55 16 3501 5394
> tel;home:+55 16 3501 5332
> tel;cell:+55 16 9112 6219
> x-mozilla-html:FALSE
> url:http://www.async.com.br
> version:2.1
> end:vcard
>
More information about the Gazpacho
mailing list