InitableIF.newv

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

interface InitableIF
static
void*
newv

Parameters

objectType GType

a GType supporting GInitable.

parameters GParameter[]

the parameters to use to construct the object

cancellable Cancellable

optional GCancellable object, NULL to ignore.

Return Value

Type: void*

a newly allocated GObject, or NULL on error. [transfer full]

Throws

GException on failure.

Meta