Icon.from_png


Description:

public Icon.from_png (string file) throws Error

Creates a new instance of a Icon widget from a PNG file.

Parameters:

file

The name of the file where the icon is stored.

Exceptions:

GLib.IOError.NOT_FOUND

if the file does not exist or IOError.FAILED if there was a problem loading the data from the file.