Package: gtk

Function gtk:text-buffer-add-commit-notify

Lambda List

gtk:text-buffer-add-commit-notify (buffer flags notify)

Arguments

buffer -- a gtk:text-buffer object
flags -- a gtk:text-buffer-notify-flags value for which notifications should be dispatched to notify
notify -- a gtk:text-buffer-commit-notify callback function to call for commit notifications

Return Value

The unsigned integer with a handler ID which may be used to remove the commit notify callback using the gtk:text-buffer-remove-commit-notify function.

Details

Adds a gtk:text-buffer-commit-notify callback function to be called when a change is to be made to the text buffer. Functions are explicitly forbidden from making changes to the text buffer from this callback. It is intended for tracking changes to the text buffer only.

It may be advantageous to use the gtk:text-buffer-commit-notify callback function over connecting to the GtkTextBuffer::insert-text signal or the GtkTextBuffer::delete-range signal to avoid ordering issues with other signal handlers which may further modify the text buffer.

Since 4.16
 

See also

#2024-10-26