Gtk.Window.prototype.set_icon_from_file

function set_icon_from_file(filename:filename):Boolean {
    // Gjs wrapper for gtk_window_set_icon_from_file()
}

Sets the icon for window. Warns on failure if @err is null.

This function is equivalent to calling Gtk.Window.prototype.set_icon with a pixbuf created by loading the image from filename.

Since 2.2

filename

location of icon file

Returns

true if setting the icon succeeded.