Re: Getting notification of GtkTextBuffer changes
- From: Havoc Pennington <hp redhat com>
- To: Gustavo Giráldez <gustavo giraldez gmx net>
- Cc: Gtk Development <gtk-devel-list gnome org>
- Subject: Re: Getting notification of GtkTextBuffer changes
- Date: Thu, 13 Mar 2003 17:50:01 -0500
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]