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.

class Window
bool
setIconFromFile
(
string filename
)

Parameters

filename string

location of icon file

Return Value

Type: bool

%TRUE if setting the icon succeeded.

Throws

GException on failure.

Meta