bind_name_model


Description:

public void bind_name_model (ListModel? model, owned ComboRowGetNameFunc? get_name_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.

This is more convenient to use than [[email protected]_model] if you want to represent items of the model with names.

Parameters:

this

a combo row

model

the [[email protected]] to be bound to this

get_name_func

a function that creates names for items, or `NULL` in case you also passed `NULL` as model

user_data

user data passed to get_name_func

user_data_free_func

function for freeing user_data




2022 vala-language.org