gtkfilechooser: Keep GtkSearchEngine around for longer
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Mar 2023 12:13:19 +0000 (13:13 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Mar 2023 12:23:56 +0000 (13:23 +0100)
commit5fd2a6c8f3f84da5d00edc0f29b42a3a627d0df4
treeeee7b4b90a7739d45618f5120561985b38cfa0ba
parent6cb6f4a50f5278fe6fcd0c150003d0aaac28d489
gtkfilechooser: Keep GtkSearchEngine around for longer

Currently the GtkSearchEngine is torn down every time the search
is stopped, which also means between typed characters. This
prevents any of the optimizations that the GtkSearchEngine can
do in the long run.

Let the GtkSearchEngine stay around for longer, and only be
disposed after search is cancelled, the filechooser moves
onto a different mode than search, or is otherwise unmapped/disposed.

While at it, remove an unused struct field.
gtk/gtkfilechooserwidget.c