PrintSettings.newFromKeyFile

gtk.print_settings.PrintSettings newFromKeyFile(glib.key_file.KeyFile keyFile, string groupName = null)

Reads the print settings from the group group_name in key_file. Returns a new #GtkPrintSettings 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 #GFileError or #GKeyFileError.

Parameters

keyFilethe #GKeyFile to retrieve the settings from
groupNamethe name of the group to use, or null to use the default “Print Settings”

Returns

the restored #GtkPrintSettings

Throws

[ErrorWrap]