projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506206e
)
treelistmodel: Don't add items in reverse
author
Benjamin Otte
<otte@redhat.com>
Wed, 29 Mar 2023 00:56:47 +0000
(
02:56
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 29 Mar 2023 01:32:48 +0000
(
03:32
+0200)
This was broken since commit
bf55685000fd744a26eec61c07fd8aa3d084d54c
where we started to track items.
Fixes #5707
gtk/gtktreelistmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtktreelistmodel.c
b/gtk/gtktreelistmodel.c
index dd3b3009ccc6003d5899cb0d64b0d902a8cf1ca2..1e55323c0a4e548bcde5389e72928eee1438c0c9 100644
(file)
--- a/
gtk/gtktreelistmodel.c
+++ b/
gtk/gtktreelistmodel.c
@@
-357,7
+357,7
@@
gtk_tree_list_model_items_changed_cb (GListModel *model,
}
tree_added = added;
- for (i =
0; i < added; i++
)
+ for (i =
added; i-- > 0;
)
{
child = gtk_rb_tree_insert_before (node->children, child);
child->parent = node;