Function
Idegtk_list_store_insert_sorted
Declaration
void
ide_gtk_list_store_insert_sorted (
GtkListStore* store,
GtkTreeIter* iter,
gconstpointer key,
guint compare_column,
GCompareDataFunc compare_func,
gpointer compare_data
)
Description
This function will binary search the contents of store
looking for the
location to insert a new row.
compare_column
must be the index of a column that is a G_TYPE_POINTER
,
G_TYPE_BOXED
or G_TYPE_OBJECT
based column.
compare_func
will be called with key
as the first parameter and the
value from the GtkListStore
row as the second parameter. The third and
final parameter is compare_data
.
This function is not directly available to language bindings.
Parameters
store
-
Type:
GtkListStore
A
GtkListStore
.The data is owned by the caller of the function. iter
-
Type:
GtkTreeIter
A location for a
GtkTextIter
.The argument will be set by the function. The data is owned by the function. key
-
Type:
gconstpointer
A key to compare to when binary searching.
The argument can be NULL
.The data is owned by the caller of the function. compare_column
-
Type:
guint
The column containing the data to compare.
compare_func
-
Type:
GCompareDataFunc
A callback to compare.
compare_data
-
Type:
gpointer
Data for
compare_func
.The argument can be NULL
.The data is owned by the caller of the function.