Gtk.PrintSettings.new_from_file

function new_from_file(file_name:filename):Gtk.PrintSettings {
    // Gjs wrapper for gtk_print_settings_new_from_file()
}

Reads the print settings from file_name. Returns a new Gtk.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 GLib.FileError or GLib.KeyFileError. See Gtk.PrintSettings.prototype.to_file.

Since 2.12

file_name

the filename to read the settings from

Returns

the restored Gtk.PrintSettings