create_context_from_png


Description:

public static unowned Context create_context_from_png (string file) throws Error

Create a context from the specified file.

The context is cached so that future calls do not have to reload the data from the file.

This is intended for use when you need to load an image but don't need a Widget.

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.