prepend


Description:

public void prepend (...)

Creates and prepends a new row to the Model, setting the row values upon creation.

Note:

Use ListModel instead

For example, to prepend a new row where column 0 is type g_type_int and column 1 is of type g_type_string:

<informalexample><programlisting> ClutterModel *model; model = clutter_model_default_new (2, G_TYPE_INT, "Score", G_TYPE_STRING, "Team"); clutter_model_prepend (model, 0, 42, 1, "Team #1", -1); </programlisting></informalexample>

Parameters:

this

a Model

...

pairs of column number and value, terminated with -1