diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-26 16:38:53 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-26 16:38:53 -0400 |
commit | 16b043a1279e1cf3fa3070ccc018b40bc28baf58 (patch) | |
tree | 200eb9d6043ac25804d5da0d392ecda85984696b /demos/gtk-demo/main.c | |
parent | 0b7f7028d918e7efb90fc986146d4945e2419d46 (diff) | |
download | gtk+-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 'demos/gtk-demo/main.c')
-rw-r--r-- | demos/gtk-demo/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index bc89b017d0..21fc5f187c 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -1136,8 +1136,8 @@ activate (GApplication *app) g_signal_connect (search_bar, "notify::search-mode-enabled", G_CALLBACK (clear_search), NULL); listmodel = create_demo_model (); - treemodel = gtk_tree_list_model_new (FALSE, - G_LIST_MODEL (listmodel), + treemodel = gtk_tree_list_model_new (G_LIST_MODEL (listmodel), + FALSE, TRUE, get_child_model, NULL, |