Window.setIconFromFile

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.

class Window
bool
setIconFromFile
(
string filename
)

Parameters

filename string

location of icon file

Return Value

Type: bool

true if setting the icon succeeded.

Throws