ComboRow.bindModel

Binds @model to @self.

If @self was already bound to a model, that previous binding is destroyed.

The contents of @self are cleared and then filled with widgets that represent items from @model. @self is updated whenever @model changes. If @model is %NULL, @self is left empty.

class ComboRow
void
bindModel
(
ListModelIF model
,
GtkListBoxCreateWidgetFunc createListWidgetFunc
,
GtkListBoxCreateWidgetFunc createCurrentWidgetFunc
,
void* userData
,
GDestroyNotify userDataFreeFunc
)

Parameters

model
Type: ListModelIF

the #GListModel to be bound to @self

createListWidgetFunc
Type: GtkListBoxCreateWidgetFunc

a function that creates widgets for items to display in the list, or %NULL in case you also passed %NULL as @model

createCurrentWidgetFunc
Type: GtkListBoxCreateWidgetFunc

a function that creates widgets for items to display as the seleted item, or %NULL in case you also passed %NULL as @model

userData
Type: void*

user data passed to @create_list_widget_func and @create_current_widget_func

userDataFreeFunc
Type: GDestroyNotify

function for freeing @user_data

Meta

Since

0.0.6