GtkListBox: Allow a NULL callback in bind_model

When unsetting the bound model, one can pass NULL, but in that case the
create_func parameter should also be NULL.
This commit is contained in:
Timm Bäder 2015-09-01 10:41:42 +02:00
parent bd35b17083
commit 1405bcb32d

View File

@ -3752,8 +3752,9 @@ gtk_list_box_check_model_compat (GtkListBox *box)
/**
* gtk_list_box_bind_model:
* @box: a #GtkListBox
* @model: (allow-none): the #GListModel to be bound to @box
* @create_widget_func: a function that creates widgets for items
* @model: (nullable): the #GListModel to be bound to @box
* @create_widget_func: (nullable): a function that creates widgets for items
* or %NULL in case you also passed %NULL as @model
* @user_data: user data passed to @create_widget_func
* @user_data_free_func: function for freeing @user_data
*