Gtk.Entry.prototype.get_icon_stock

function get_icon_stock(icon_pos:Gtk.EntryIconPosition):String {
    // Gjs wrapper for gtk_entry_get_icon_stock()
}

Retrieves the stock id used for the icon, or null if there is no icon or if the icon was set by some other method (e.g., by pixbuf, icon name or gicon).

Since 2.16

icon_pos

Icon position

Returns

A stock id, or null if no icon is set or if the icon wasn't set from a stock id