set_buffer


Description:

public void set_buffer (TextBuffer? buffer)

Sets buffer as the buffer being displayed by this.

The previous buffer displayed by the text view is unreferenced, and a reference is added to buffer. If you owned a reference to buffer before passing it to this function, you must remove that reference yourself; `GtkTextView` will not “adopt” it.

Parameters:

this

a `GtkTextView`

buffer

a `GtkTextBuffer`