GNOME Bugzilla – Bug 758929
GtkEntryCompletion should allow for changing the popdown delay
Last modified: 2015-12-05 19:14:58 UTC
Different use-cases of GtkEntryCompletion may need different timeouts for the popdown delay. Most use-cases probably are fine with the current hard-coded 300 milliseconds. However, one use case that is not sufficient for, is autocompletion in Epiphany's URL bar. The delay in Epiphany's location bar results in activating something different than would be expected because the entry completion has not been displayed (and therefore not activating the first item in the list). Simply changing this to 100msec seems to make epiphany feel a lot more like FireFox in this regard. I see two options (should we choose to make this configurable). 1) Add a GtkStyleProperty so this is changeable in CSS 2) Add a regular gproperty for completion-delay Happy to cook up a patch for either, just tell me which would be preferred.
The current timeout is 300ms, actually. This doesn't feel like a style thing to me. We did deprecate (and ignore) a bunch of timeout-related settings in the past. But we can certainly discuss adding a property for this.
Based on a chat with Benjamin, we might also just consider changing it to 100. I think the primary problem here, is that you can get 2 different results based on how long you wait before pressing Enter. To solve that, we could also just perform what the delay would have done during activate.