Indeed, reverting it fixes the bug for master. Again looks like you are better at diagnostics than me :)
I suppose we can just revert, since the reason why I moved the spinner out of the menu does not exists any more (no custom menu key-navigation any more, default menu nav. works fine with spinner inside menu)
Minor problem: I dont get the spinner adjusted to the right by using gtk_widget_set_hexpand (item, TRUE); + gtk_widget_set_halign (item, GTK_ALIGN_END) over the deprecated gtk_menu_item_set_right_justified. Any idea would be welcome !
All at all, I am surprised to see that such a flickering can happen, just because of the spinner location :F
Adding a menu is some overhead and I did not get it to work. But "combine it" was the right trigger .. seems like putting the spinner into a box is sufficient as well to prevent the bug:
What remains is the flickering of individual files (area is invalidated -> grey box for a brief moment). I wonder if we can debug that too.
That seems to be an older bug .. but yea, please open an issue for it.
I wonder if icon-view maybe generally suffers from bad reload performance, and if possibly rate-limiting for folder reload would help on this.