insert_before
Description:
Creates and inserts a new row into a Model just before the row pointed to by iter
.
For example, to insert a new row in a model with schema ("u", "s", "as") you would do:
DeeModelIter *iter;
GVariantBuilder b;
g_variant_builder_init (&b, "as");
g_variant_builder_add (&b, "s", "Hello");
g_variant_builder_add (&b, "s", "World");
iter = find_my_special_row (model);
dee_model_insert_before (model, iter,
27,
"Howdy",
g_variant_builder_end (&b));
Parameters:
this |
a Model |
iter |
An iter pointing to the row before which to insert the new one |
Returns:
A ModelIter pointing to the new row |