Method

GtkTextBufferinsert_interactive_at_cursor

Declaration [src]

gboolean
gtk_text_buffer_insert_interactive_at_cursor (
  GtkTextBuffer* buffer,
  const gchar* text,
  gint len,
  gboolean default_editable
)

Description [src]

Calls gtk_text_buffer_insert_interactive() at the cursor position.

default_editable indicates the editability of text that doesn’t have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here.

Parameters

text const gchar*
 

Text in UTF-8 format.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
len gint
 

Length of text in bytes, or -1

default_editable gboolean
 

Default editability of buffer.

Return value

Returns: gboolean
 

Whether text was actually inserted.