Constructor

GtkSourceViewnew_with_buffer

Declaration [src]

GtkWidget*
gtk_source_view_new_with_buffer (
  GtkSourceBuffer* buffer
)

Description [src]

Creates a new GtkSourceView widget displaying the buffer buffer.

One buffer can be shared among many widgets.

Parameters

buffer GtkSourceBuffer
 

A GtkSourceBuffer.

 The data is owned by the caller of the function.

Return value

Returns: GtkWidget
 

A new GtkSourceView.

 The data is owned by the called function.