Method

GtkTextBufferset_text

Declaration [src]

void
gtk_text_buffer_set_text (
  GtkTextBuffer* buffer,
  const gchar* text,
  gint len
)

Description [src]

Deletes current contents of buffer, and inserts text instead. If len is -1, text must be nul-terminated. text must be valid UTF-8.

Sets propertyGtk.TextBuffer:text

Parameters

text

Type: const gchar*

UTF-8 text to insert.

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

Type: gint

Length of text in bytes.