ListBox.setSortFunc

By setting a sort function on the list_box one can dynamically reorder the rows of the list, based on the contents of the rows. The sort_func will be called for each row after the call, and will continue to be called each time a row changes (via gtk_list_box_row_changed()) and when gtk_list_box_invalidate_sort() is called.

class ListBox
void
setSortFunc

Parameters

sortFunc GtkListBoxSortFunc

the sort function. [closure user_data][allow-none]

userData void*

user data passed to sort_func

destroy GDestroyNotify

destroy notifier for user_data Since 3.10

Meta