Gtk.Entry.prototype.get_icon_name

function get_icon_name(icon_pos:Gtk.EntryIconPosition):String {
    // Gjs wrapper for gtk_entry_get_icon_name()
}

Retrieves the icon name 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, stock or gicon).

Since 2.16

icon_pos

Icon position

Returns

An icon name, or null if no icon is set or if the icon wasn't set from an icon name