bind_model
Description:
public void bind_model (ListModel? model, ListBoxCreateWidgetFunc? create_list_widget_func, owned ListBoxCreateWidgetFunc? create_current_widget_func)
Binds 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 model
.
this is updated whenever model
changes. If model
is `NULL`,
this is left empty.
Parameters:
this |
a combo row |
model |
the [iface@Gio.ListModel] to be bound to this |
create_list_widget_func |
a function that creates widgets for items to display in the list, or `NULL` in case you also passed `NULL` as |
create_current_widget_func |
a function that creates widgets for items to display as the selected item, or `NULL` in case you also passed `NULL` as |
user_data |
user data passed to |
user_data_free_func |
function for freeing |