GNOME Bugzilla – Bug 790738
DzlSuggestionEntry pops up if you switch to a new tab and then back
Last modified: 2018-06-24 19:13:10 UTC
The entry pops up if you switch to a new tab and then back, while the entry was already open in the previous tab. That's disturbing. It should not do that!
Issue is caused by libdazzle as it only has a changed callback. Within this cb the only guard around showing suggestion box is whether it has focus. Switching tabs within notebooks sets the entry text while keeping the focus, that's why a suggestion box is shown. GtkEntry avoids this behaviour by explicit blocking completion during set_text operation. Unfortunately there is no such function in libdazzle yet. Proposal: Extend libdazzles api with a set_text function blocking suggestion box.
(In reply to Jan-Michael Brummer from comment #1) > Proposal: Extend libdazzles api with a set_text function blocking suggestion > box. Thanks for working on this. Please talk to Christian Hergert about the API request.
Seems reasonable. Let me know if https://gitlab.gnome.org/GNOME/libdazzle/commit/ee1cde831d7bae7551890ca6ec0b12006f2537e7 is enough for your use case. I'd like to avoid adding a set_text() API because it would break with GtkEntry:text usage.
It's working fine now. This use case is fixed.
Yay!