gtkPrintSettingsNewFromFile {RGtk2} | R Documentation

## gtkPrintSettingsNewFromFile

### Description

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 `gtkPrintSettingsToFile`.

### Usage

    gtkPrintSettingsNewFromFile(file.name, .errwarn = TRUE)

### Arguments

``file.name`` | the filename to read the settings from
`.errwarn` | Whether to issue a warning on error or fail silently

### Details

Since 2.12

### Value

A list containing the following elements:

`retval` | [`GtkPrintSettings`] the restored `GtkPrintSettings`
``error`` | return location for errors, or `NULL`. [ allow-none ]

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.36.3 Index]