summaryrefslogtreecommitdiff
path: root/gtk/gtklistbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2015-09-01 10:41:42 +0200
committerTimm Bäder <mail@baedert.org>2015-09-03 16:12:15 +0200
commit1405bcb32d4e63e5f641eb8f54bafec2581520e0 (patch)
treed56718ad9bfc6126aff52bf2c19d6e41873e20cc /gtk/gtklistbox.c
parentbd35b17083af8fac8c5ce88fa25c2923e87d930f (diff)
downloadgtk+-1405bcb32d4e63e5f641eb8f54bafec2581520e0.tar.gz
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.
Diffstat (limited to 'gtk/gtklistbox.c')
-rw-r--r--gtk/gtklistbox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index fd91acfbea..01a0f4df91 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -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
*