Migrate search bar from GtkEntry to GtkSearchEntry widget?
The GTK4 version of the GtkSearchEntry widget has the search-delay
property (and a different set of search-specific signals) that would allow us to replace Nautilus' old timer delay code that was called upon in #1731 (closed). In that issue, I preferred to call upon the existing code for simplicity reasons, because it worked and allowed a one-liner change instead of needing to go down a refactoring rabbit hole (also, I don't actually know how to write C code).
As far as I could tell, the current Nautilus codebase uses a regular GtkEntry widget for the search bar, instead of a SearchEntry widget.
To simplify the code while achieving the same performance benefits, I am guessing that it might be better to switch to a GtkSearchEntry widget, with the search-delay
property set to 400 miliseconds (to keep the performance benefits as per issue 1731, at least until not only !1149 (merged) is merged but also until this ibus issue is fixed)... unless there is a particular reason (i.e. heavy customization?) why Nautilus uses a regular GtkEntry widget instead of a GtkSearchEntry widget (other than, "GtkSearchEntry didn't exist way back then")?