Method

GimpConfigdeserialize_file

Declaration [src]

gboolean
gimp_config_deserialize_file (
  GimpConfig* config,
  GFile* file,
  gpointer data,
  GError** error
)

Description [src]

Opens the file specified by file, reads configuration data from it and configures config accordingly. Basically this function creates a properly configured GScanner for you and calls the deserialize function of the configs GimpConfigInterface.

Available since:2.10

Parameters

file GFile
 

The file to read configuration from.

 The data is owned by the caller of the function.
data gpointer
 

User data passed to the deserialize implementation.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

Whether deserialization succeeded.