Stopping GTK Treemodelsort while updating model data
Steps to reproduce
- Update large mode data of GTK treestore (connected to treeview)
- Click triangles to expand a large tree
- It does not recognize clicks because model rows are sorted during update
-
Gtk.TreeModelSort.freeze_notify()
is used before lines for updating treestore but it did not work.
Current behavior
- It does not recognize clicks because model rows are sorted during update
- Gtk.TreeModelSort.freeze_notify()` is used but it did not work.
- While updating the model, expanding triangle colors change even mouse arrow is on them. Triangles look like they are unfocused. They are focused again after moving mouse pointer away and back. Expander arrows work in this situation.
- Expander arrows work if
a_treestore.set_value(...)
line is disabled. But the model is not updated in this situation.
Expected outcome
Working expanding tree triangles
Version information
- GTK 4.10.4 (Python)
- Addition: GTK3 has the same problem.
Additional information
Edited by userss 11