Gtk UI: small code refactoring
Gtk UI: fix rare segfaults in search progress indicator
Qt UI: improvements in search widget logic.
Gtk UI: improvements in search widget.