Weird behavior on GtkTreeView with a GtkListStore when column is sorted
Hello, I'm the developer of OTPClient, a simple software for managing TOTP/HOTP.
I'm dealing with a strange bug that I can't quite figure it out, so I though it could be something "deeper" and not related to my software.
The bug I'm facing is that when I click on the column header to sort the column, almost all entries in the UI get duplicated. If I reset the column sorting order, then everything goes back to normal. The code for my treeview+liststore is here, in case you'd like to have a look: https://github.com/paolostivanin/OTPClient/blob/master/src/treeview.c
So I though: why not checking the gtk3-demo
to see whether something weird is happening also with the official treeview example? I did it, and this is what I found.
How to reproduce:
- launch
gtk3-demo
- select Treeview
- select list store
- sort by Bug Number/Severity/Description/Spinning
When sorting by Bug Number or Severity or Description, a spinning widget gets randomly added to an entry. Moreover, if one tries to sort the column by clicking on the Spinning header, the example will go completely nuts.
I have verified this on both openSUSE Tumbleweed and Ubuntu 20.04, both cleanly installed on a VM.