public void set_for_enum (Type enum_type, owned ComboRowGetEnumValueNameFunc? get_name_func)
Creates a model for
enum_type and binds it to this.
The items of the model will be EnumValueObject objects.
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.
This is more convenient to use than bind_name_model if you want to represent values of an enumeration with names.
the enumeration Type to be bound to this
a function that creates names for items, or null in case you also passed
user data passed to
function for freeing