TextView.getDefaultAttributes

gtk.text_attributes.TextAttributes getDefaultAttributes()

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.TextIter.getAttributes 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.TextAttributes.unref.

Returns

a new #GtkTextAttributes