gInitableNew: gInitableNew

Description Usage Arguments Details Value Author(s)

View source: R/gioManuals.R

Description

Helper function for constructing GInitiable object. This is similar to gObjectNew but also initializes the object and returns NULL, setting an error on failure.

Usage

1
gInitableNew(object.type, cancellable, ..., .errwarn = TRUE)

Arguments

object.type

a GType supporting GInitable.

cancellable

optional GCancellable object, NULL to ignore.

...

the value if the first property, followed by and other property value pairs, and ended by NULL.

.errwarn

Whether to issue a warning on error or fail silently

Details

Since 2.22

Value

A list containing the following elements:

retval

[R object] a newly allocated GObject, or NULL on error

error

a GError location to store the error occuring, or NULL to ignore.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to gInitableNew in RGtk2...