Gtk.IconSource.prototype.get_state

function get_state():Gtk.StateType {
    // Gjs wrapper for gtk_icon_source_get_state()
}

Obtains the widget state this icon source applies to. The return value is only useful/meaningful if the widget state is <emphasis>not</emphasis> wildcarded.

Returns

widget state this source matches