Gtk.Window.prototype.get_icon

function get_icon():GdkPixbuf.Pixbuf {
    // Gjs wrapper for gtk_window_get_icon()
}

Gets the value set by Gtk.set_icon (or if you've called Gtk.set_icon_list, gets the first icon in the icon list).

Returns

icon for window