deserialize_file


Description:

[ Version ( since = "2.10" ) ]
public bool deserialize_file (File file, void* data) throws Error

Opens the file specified by file, reads configuration data from it and configures this accordingly.

Basically this function creates a properly configured [struct@GLib.Scanner] for you and calls the deserialize function of the this's [iface@ConfigInterface].

Parameters:

this

an object that implements the ConfigInterface.

file

the file to read configuration from.

data

user data passed to the deserialize implementation.

Returns:

Whether deserialization succeeded.