get_resource


Description:

public Resource get_resource (string? filename) throws Error

Creates a new Resource for the given filename located in the module directory.

If filename is null then "${module_name}.gresource" will be loaded.

Parameters:

this

A PluginInfo.

filename

The filename of the resource, or null.

Returns:

a new Resource, or null.