Method

Gtk.TextBuffer.set_text

Declaration [src]

void
gtk_text_buffer_set_text (
  GtkTextBuffer* buffer,
  const char* text,
  int 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.

Parameters

text const char*
 

UTF-8 text to insert

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
len int
 

length of text in bytes