Gtk.NumerableIcon.prototype.set_background_gicon
function set_background_gicon(icon:Gio.Icon):void { // Gjs wrapper for gtk_numerable_icon_set_background_gicon() }
Updates the icon to use icon as the base background image. If icon is null, self will go back using style information or default theming for its background image.
If this method is called and an icon name was already set as background for the icon, icon will be used, i.e. the last method called between Gtk.NumerableIcon.prototype.set_background_gicon and Gtk.set_background_icon_name has always priority.
Since 3.0
- icon
a Gio.Icon, or null