GtkTextBuffer::get_text
Returns the text in the specified range [start, end). This method does not return characters representing embedded images, so byte and character indexes into the returned string do not correspond to byte and character indexes into the buffer. Text marked with tags that set the invisibility attribute are excluded if include_hidden_chars is FALSE.
See also: set_text()