[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public TextView.with_buffer (TextBuffer buffer)
Creates a new `GtkTextView` widget displaying the buffer buffer
.
One buffer can be shared among many widgets. buffer
may be null to create a default
buffer, in which case this function is equivalent to [[email protected]]. The text view adds its own reference count to the buffer; it
does not take over an existing reference.
buffer |
a `GtkTextBuffer` |
a new `GtkTextView`. |