Method

GtkTextViewget_default_attributes

Declaration [src]

GtkTextAttributes*
gtk_text_view_get_default_attributes (
  GtkTextView* text_view
)

Description [src]

Obtains a copy of the default text attributes. These are the attributes used for text unless a tag overrides them. You’d typically pass the default attributes in to gtk_text_iter_get_attributes() in order to get the attributes in effect at a given text position.

The return value is a copy owned by the caller of this function, and should be freed with gtk_text_attributes_unref().

Return value

Type: GtkTextAttributes

A new GtkTextAttributes.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.