Signal
GtkTextBuffer::insert-text
Declaration
void
insert_text (
GtkTextBuffer* self,
const GtkTextIter* location,
gchar* text,
gint len,
gpointer user_data
)
Description [src]
Emitted to insert text in a GtkTextBuffer
.
Insertion actually occurs in the default handler.
Note that if your handler runs before the default handler
it must not invalidate the location
iter (or has to
revalidate it). The default signal handler revalidates
it to point to the end of the inserted text.
See also: gtk_text_buffer_insert()
,
gtk_text_buffer_insert_range()
.
Default handler: The default handler is called after the handlers added via |
Parameters
location
-
Type:
GtkTextIter
Position to insert
text
intextbuffer
.The data is owned by the caller of the function. text
-
Type:
gchar*
The UTF-8 text to be inserted.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. len
-
Type:
gint
Length of the inserted text in bytes.