Function

Gio-2.0Gioresource_loadSince 2.32

  • Loads a binary resource bundle and creates a Gio.Resource representation of it, allowing you to query it for data.

    If you want to use this resource in the global resource namespace you need to register it with Gio.resources_register.

    If filename is empty or the data in it is corrupt, Gio.ResourceError.INTERNAL will be returned. If filename doesn’t exist, or there is an error in reading it, an error from GLib.MappedFile.new will be returned.

    Parameters

    • filename: string

      the path of a filename to load, in the GLib filename encoding

    Returns Gio.Resource

    a new Gio.Resource, or NULL on error

    2.32

    GLib.Error