addCommitNotify
Adds a callback@Gtk.TextBufferCommitNotify to be called when a change is to be made to the type@Gtk.TextBuffer.
Functions are explicitly forbidden from making changes to the type@Gtk.TextBuffer from this callback. It is intended for tracking changes to the buffer only.
It may be advantageous to use callback@Gtk.TextBufferCommitNotify over connecting to the signal@Gtk.TextBuffer::insert-text or signal@Gtk.TextBuffer::delete-range signals to avoid ordering issues with other signal handlers which may further modify the type@Gtk.TextBuffer.
Return
a handler id which may be used to remove the commit notify callback using method@Gtk.TextBuffer.remove_commit_notify.
Since
4.16
Parameters
which notifications should be dispatched to @callback
a callback@Gtk.TextBufferCommitNotify to call for commit notifications