insert_sorted


Description:

public unowned ModelIter insert_sorted (CompareRowFunc cmp_func, ...)

Convenience function for calling insert_row_sorted.

Inserts a row in this according to the sorting specified by cmp_func. If you use this method for insertion you should not use other methods as this method assumes the model to be already sorted by cmp_func.

Parameters:

this

The model to do a sorted insert on

cmp_func

Callback used for comparison or rows

user_data

Arbitrary pointer passed to cmp_func during search

Returns:

A ModelIter pointing to the new row




2022 vala-language.org