public void bind_model (ListModel? model, owned ListBoxCreateWidgetFunc? create_widget_func)
model to this.
If this was already bound to a model, that previous binding is destroyed.
The contents of this are cleared and then filled with widgets that represent items from
this is updated whenever
model changes. If
model is null
, this is left empty.
Note that using a model is incompatible with the filtering and sorting functionality in GtkListBox. When using a model, filtering and sorting should be implemented by the model.
the ListModel to be bound to this
a function that creates widgets for items or null in case you also passed
user data passed to
function for freeing