summaryrefslogtreecommitdiff
path: root/tests/testlistdnd.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-26 16:38:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-26 16:38:53 -0400
commit16b043a1279e1cf3fa3070ccc018b40bc28baf58 (patch)
tree200eb9d6043ac25804d5da0d392ecda85984696b /tests/testlistdnd.c
parent0b7f7028d918e7efb90fc986146d4945e2419d46 (diff)
downloadgtk+-tree-list-constructor.tar.gz
treelistmodel: Make constructor transfer fulltree-list-constructor
Make gtk_tree_list_model_new() take the root model as first argument, and make it transfer full, for consistency with other wrapping list constructors. Update all callers. Still missing here: Make the model property writable, and allow passing NULL in the constructor.
Diffstat (limited to 'tests/testlistdnd.c')
-rw-r--r--tests/testlistdnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testlistdnd.c b/tests/testlistdnd.c
index 2d8f7f4b7e..533f0a8d38 100644
--- a/tests/testlistdnd.c
+++ b/tests/testlistdnd.c
@@ -191,8 +191,8 @@ create_child_model (gpointer item,
static GListModel *
create_tree_model (guint n, guint m)
{
- return G_LIST_MODEL (gtk_tree_list_model_new (FALSE,
- create_model (0, n, m, TRUE),
+ return G_LIST_MODEL (gtk_tree_list_model_new (create_model (0, n, m, TRUE),
+ FALSE,
FALSE,
create_child_model,
GUINT_TO_POINTER (m), NULL));