You may wish to begin by reading the text widget conceptual overview which
gives an overview of all the objects and data types related to the text
widget and how they work together.
The "apply-tag" signal
lambda (buffer tag start end) :run-last
The signal is emitted to apply a tag to a range of text in a text buffer.
Applying actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the
start and
end iterators, or has to revalidate them.
The "begin-user-action" signal
lambda (buffer) :run-last
The signal is emitted at the beginning of a single user visible operation
on a text buffer.
The "changed" signal
lambda (buffer) :run-last
The signal is emitted when the content of a text buffer has changed.
The "delete-range" signal
lambda (buffer start end) :run-last
The signal is emitted to delete a range from a text buffer. Note that if
your handler runs before the default handler it must not invalidate the
start and
end iterators, or has to revalidate them. The default signal handler revalidates the
start and
end iterators
to both point to the location where text was deleted. Handlers which run
after the default handler do not have access to the deleted text.
The "end-user-action" signal
lambda (buffer) :run-last
The signal is emitted at the end of a single user visible operation on
the text buffer.
The "insert-child-anchor" signal
lambda (buffer location anchor) :run-last
The signal is emitted to insert a
gtk:text-child-anchor object
in a text buffer. Insertion actually occurs in the default handler. Note
that if your handler runs before the default handler it must not invalidate the
location iterator, or has to revalidate it. The
default signal handler revalidates it to be placed after the inserted
anchor.
The "insert-pixbuf" signal
lambda (buffer location pixbuf) :run-last
The signal is emitted to insert a
gdk-pixbuf:pixbuf object in a
text buffer. Insertion actually occurs in the default handler. Note that
if your handler runs before the default handler it must not invalidate the
location iterator, or has to revalidate it. The default signal handler revalidates it to be placed after the inserted
pixbuf.
The "insert-text" signal
lambda (buffer location text len) :run-last
- buffer
- The gtk:text-buffer object which received the signal.
- location
- The gtk:text-iter position to insert text in buffer.
- text
- A string with the UTF-8 text to be inserted.
- len
- An integer with the length of the inserted text in bytes.
The signal is emitted to insert text in a text buffer. Insertion actually
occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the
location iterator, or has
to revalidate it. The default signal handler revalidates it to point to
the end of the inserted text.
The "mark-deleted" signal
lambda (buffer mark) :run-last
The signal is emitted as notification after a
gtk:text-mark
object is deleted.
The "mark-set" signal
lambda (buffer location mark) :run-last
object is set.
The signal is emitted as notification after a
gtk:text-mark
The "modifed-changed" signal
lambda (buffer) :run-last
The signal is emitted when the modified bit of a text buffer flips.
The "paste-done" signal
lambda (buffer clipboard) :run-last
The signal is emitted after paste operation has been completed. This is
useful to properly scroll the view to the end of the pasted text.
The "remove-tag" signal
lambda (buffer tag start end) :run-last
The signal is emitted to remove all occurrences of
tag from a range
of text in a text buffer. Removal actually occurs in the default handler.
Note that if your handler runs before the default handler it must not invalidate the
start and
end iterators, or has to revalidate
them.