Getting notification of GtkTextBuffer changes



Hi,

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 was going to file an enhancement bug report, but maybe there's a way
to handle this elegantly with the current API?

Thanks,
Gustavo





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