Window.setIconFromFile

bool setIconFromFile(string filename)

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

This function is equivalent to calling [gtk.window.Window.setIcon] with a pixbuf created by loading the image from filename.

Parameters

filenamelocation of icon file

Returns

true if setting the icon succeeded.

Throws

[ErrorWrap]