Re: Getting notification of GtkTextBuffer changes



On Thu, Mar 13, 2003 at 05:59:07PM -0300, Gustavo Giráldez wrote:
> 
> Is there a way for a GtkTextView derived widget to get notification when
> the buffer is set?  In gtksourceview we have a GtkSourceBuffer (derived
> from GtkTextBuffer) and it has a signal we need to connect in the view. 
> Currently we track the buffer using a weak pointer and comparing it to
> the GtkTextBuffer's text_buffer member, but that's rather messy.
> 

I'd suggest introducing a "buffer" object property then you could
connect to "notify::buffer"

Havoc



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