Window.setIconFromFile

Sets the icon for window. Warns on failure if err is NULL. This function is equivalent to calling gtk_window_set_icon() with a pixbuf created by loading the image from filename. Since 2.2

class Window
int
setIconFromFile
(
string filename
)

Parameters

filename string

location of icon file

Return Value

Type: int

TRUE if setting the icon succeeded.

Throws

GException on failure.

Meta