Gtk.PaperSize.new_from_key_file

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

Reads a paper size from the group group_name in the key file key_file.

Since 2.12

key_file

the GLib.KeyFile to retrieve the papersize from

group_name

the name ofthe group in the key file to read, or null to read the first group

Returns

a new Gtk.PaperSize object with the restored paper size, or null if an error occurred