Gtk.ToolButton.prototype.get_icon_name

function get_icon_name():String {
    // Gjs wrapper for gtk_tool_button_get_icon_name()
}

Returns the name of the themed icon for the tool button, see Gtk.set_icon_name.

Since 2.8

Returns

the icon name or null if the tool button has no themed icon