Gtk.StyleContext.new

function new():Gtk.StyleContext {
    // Gjs wrapper for gtk_style_context_new()
}

Creates a standalone Gtk.StyleContext, this style context won't be attached to any widget, so you may want to call Gtk.StyleContext.prototype.set_path yourself.

<note> This function is only useful when using the theming layer separated from GTK+, if you are using Gtk.StyleContext to theme Gtk.Widget<!-- -->s, use Gtk.get_style_context in order to get a style context ready to theme the widget. </note>

Returns

A newly created Gtk.StyleContext.