Method
IdeBufferadd_commit_funcs
Declaration
guint
ide_buffer_add_commit_funcs (
IdeBuffer* self,
IdeBufferCommitFunc before_insert_text,
IdeBufferCommitFunc after_insert_text,
IdeBufferCommitFunc before_delete_range,
IdeBufferCommitFunc after_delete_range,
gpointer user_data,
GDestroyNotify user_data_destroy
)
Description
Adds function callbacks to handle important changes to text
internally within the GtkTextBuffer. You can use these instead
of signals like GtkTextBuffer::insert-text
or
GtkTextBuffer::delete-range
when you want to be sure you’re
getting unprocessed changes right before they are committed to
underlying GTK data structures.
However, this has the requirement that you do not change this content in any way, only access the information that these events occurred.
Parameters
before_insert_text
-
Type:
IdeBufferCommitFunc
Function for before inserting text.
The argument can be NULL
. after_insert_text
-
Type:
IdeBufferCommitFunc
Function for after inserting text.
The argument can be NULL
. before_delete_range
-
Type:
IdeBufferCommitFunc
Function for before deleting a range.
The argument can be NULL
. after_delete_range
-
Type:
IdeBufferCommitFunc
Function for after deleting a range.
The argument can be NULL
. user_data
-
Type:
gpointer
Closure data.
The argument can be NULL
.The data is owned by the caller of the method. user_data_destroy
-
Type:
GDestroyNotify
Destroy notify for
user_data
.