GtkTextBuffer::set_text

void set_text(string text, int len);

Replaces the current contents of the textbuffer with the contents of text.

See also: get_text()