DataModel.appendValues

int appendValues(gobject.value.Value[] values = null)

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.

Parameters

values#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).

Returns

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

Throws

[DataModelException]