InitableT.newv

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

template InitableT(TStruct)
static
void*
newv
(,
GParameter[] parameters
,
Cancellable cancellable
)

Parameters

objectType GType

a GType supporting GInitable.

parameters GParameter[]

the parameters to use to construct the object. [array length=n_parameters]

cancellable Cancellable

optional GCancellable object, NULL to ignore.

Return Value

Type: void*

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

Throws

GException on failure.

Meta