new_with_style_context

function new_with_style_context(base_icon:Gio.Icon, context:Gtk.StyleContext):Gio.Icon {
    // Gjs wrapper for gtk_numerable_icon_new_with_style_context()
}

Creates a new Gtk.NumerableIcon which will themed according to the passed Gtk.StyleContext. This is a convenience constructor that calls Gtk.NumerableIcon.prototype.set_style_context internally.

Since 3.0

base_icon

a Gio.Icon to overlay on

context

a Gtk.StyleContext

Returns

a new Gio.Icon