summaryrefslogtreecommitdiff
path: root/gtk/gtktreelistmodel.h
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 /gtk/gtktreelistmodel.h
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 'gtk/gtktreelistmodel.h')
-rw-r--r--gtk/gtktreelistmodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktreelistmodel.h b/gtk/gtktreelistmodel.h
index 1b358f8d6b..e5f76ac5aa 100644
--- a/gtk/gtktreelistmodel.h
+++ b/gtk/gtktreelistmodel.h
@@ -58,8 +58,8 @@ G_DECLARE_FINAL_TYPE (GtkTreeListRow, gtk_tree_list_row, GTK, TREE_LIST_ROW, GOb
typedef GListModel * (* GtkTreeListModelCreateModelFunc) (gpointer item, gpointer user_data);
GDK_AVAILABLE_IN_ALL
-GtkTreeListModel * gtk_tree_list_model_new (gboolean passthrough,
- GListModel *root,
+GtkTreeListModel * gtk_tree_list_model_new (GListModel *root,
+ gboolean passthrough,
gboolean autoexpand,
GtkTreeListModelCreateModelFunc create_func,
gpointer user_data,