PrintSettings.newFromKeyFile

Reads the print settings from the group group_name in key_file.

Returns a new gtk.print_settings.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 glib.types.FileError or glib.types.KeyFileError.

class PrintSettings
static
newFromKeyFile

Parameters

keyFile glib.key_file.KeyFile

the glib.key_file.KeyFile to retrieve the settings from

groupName string

the name of the group to use, or null to use the default “Print Settings”

Return Value

Type: gtk.print_settings.PrintSettings