I've added this function documentation to the repr.h file as it looked very handy to hold onto. It perhaps should be reorganized or moved to a more appropriate file - go ahead.
Bryce
On Fri, 5 Dec 2003, MenTaLguY wrote:
On Thu, 2003-12-04 at 16:25, bulia byak wrote: Though SPRepr provides "signals" for notification when individual nodes change, there is no mechanism to recieve notification for overall document changes.
However, with the addition of the transactions code, it would not be very hard to implement if you wanted it.
SPRepr itself doesn't use GObject signals at present -- SPReprs maintain lists of SPReprEventVectors (added via sp_repr_add_listener), which are used to specify callbacks when something changes.
Here are the current callbacks in an event vector (they may be NULL):
void (* destroy) (SPRepr *repr, void * data);
Called when the repr is destroyed.
unsigned int (* add_child) (SPRepr *repr, SPRepr *child, SPRepr
*ref, void * data);
Called before a child is added; the handler can return FALSE to veto the addition. ref is the child after which the new child is to be added.
<snip>