[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.12" ) ]
public PrintSettings.from_key_file (KeyFile key_file, string? group_name) throws Error
Reads the print settings from the group group_name
in key_file
.
Returns a new PrintSettings object with the restored settings, or null if an error occurred. If the file could not be loaded then error is set to either a FileError or KeyFileError.
key_file |
the KeyFile to retrieve the settings from |
group_name |
the name of the group to use, or null to use the default “Print Settings” |
the restored PrintSettings |