PageSetup.newFromKeyFile

gtk.page_setup.PageSetup newFromKeyFile(glib.key_file.KeyFile keyFile, string groupName = null)

Reads the page setup from the group group_name in the key file key_file.

Returns a new [gtk.page_setup.PageSetup] object with the restored page setup, or null if an error occurred.

Parameters

keyFilethe [glib.key_file.KeyFile] to retrieve the page_setup from
groupNamethe name of the group in the key_file to read to use the default name “Page Setup”

Returns

the restored [gtk.page_setup.PageSetup]

Throws

[ErrorWrap]