GtkTreeModelFilter doesn't always notify parent model about new rows
Steps to reproduce
- Compile and run the attached minimal example
- Click on "Insert and expand"
- Collapse the "A" tree row
- Click on "Insert and expand" twice - first problem: no new rows are visible
- Collapse the "A" tree row again - second problem: critical error printed out in the terminal
Gtk-CRITICAL **: 10:48:56.496: gtk_tree_view_unref_tree_helper: assertion 'node != NULL' failed
- Expand the "A" tree row again - third problem: Only A4 row is visible
Current behavior
Described in steps 4-6 above
Expected outcome
After clicking on "Insert and expand" the last two times, "A3" and "A4" rows should be visible in the tree
Version information
GTK 3.24.43 on Arch Linux with latest updates