Gtk.PrintSettings.new_from_key_file

function new_from_key_file(key_file:GLib.KeyFile, group_name:String):Gtk.PrintSettings {
    // Gjs wrapper for gtk_print_settings_new_from_key_file()
}

Reads the print settings from the group group_name in key_file. 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.

Since 2.12

key_file

the GLib.KeyFile to retrieve the settings from

group_name

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

Returns

the restored Gtk.PrintSettings