ListBox.setFilterFunc

By setting a filter function on the list_box one can decide dynamically which of the rows to show. For instance, to implement a search function on a list that filters the original list to only show the matching rows. The filter_func will be called for each row after the call, and it will continue to be called each time a row changes (via gtk_list_box_row_changed()) or when gtk_list_box_invalidate_filter() is called.

class ListBox
void
setFilterFunc

Parameters

filterFunc GtkListBoxFilterFunc

callback that lets you filter which rows to show. [closure user_data][allow-none]

userData void*

user data passed to filter_func

destroy GDestroyNotify

destroy notifier for user_data Since 3.10

Meta