DataModel.appendValues

Appends a row to the given data model. If any value in values is actually null, then it is considered as a default value. If values is null then all values are set to their default value.

Upon errors -1 will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.

interface DataModel
int
appendValues

Parameters

values gobject.value.Value[]

#GList of #GValue* representing the row to add. The length must match model's column count. These #GValue are value-copied (the user is still responsible for freeing them).

Return Value

Type: int

the number of the added row, or -1 if an error occurred

Throws