Gtk.TextView.prototype.get_default_attributes
function get_default_attributes():Gtk.TextAttributes { // Gjs wrapper for gtk_text_view_get_default_attributes() }
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.TextIter.prototype.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.
- Returns
a new Gtk.TextAttributes