rc_get_style

function rc_get_style(widget:Gtk.Widget):Gtk.Style {
    // Gjs wrapper for gtk_rc_get_style()
}

Finds all matching RC styles for a given widget, composites them together, and then creates a Gtk.Style representing the composite appearance. (GTK+ actually keeps a cache of previously created styles, so a new style may not be created.)

widget

a Gtk.Widget

Returns

the resulting style. No refcount is added to the returned style, so if you want to save this style around, you should add a reference yourself.