PrintSettings.newFromFile

Reads the print settings from file_name. 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. See gtk.print_settings.PrintSettings.toFile.

class PrintSettings
static
newFromFile
(
string fileName
)

Parameters

fileName string

the filename to read the settings from

Return Value

Type: gtk.print_settings.PrintSettings

the restored #GtkPrintSettings

Throws