Delay search activation for better UX & perfs

A more realistic default delay avoids spamming the search backends.
Benefits of this approach:

* Improves overall performance, allows wider search timeline ranges;
* Reduces power consumption;
* Reduces or eliminates flickering in the GUI;
* Reduces the amount of trace logging noise by more than 15x.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1170
This commit is contained in:
Jean-François Fortin Tam
2024-05-01 14:52:13 +00:00
committed by Georges Basile Stavracas Neto
parent d7f200fff8
commit f332b5a076
+1
View File
@@ -54,6 +54,7 @@
<property name="placeholder-text" translatable="yes">Search events</property>
<property name="max-width-chars">0</property>
<property name="width-chars">0</property>
<property name="search-delay">500</property>
<signal name="activate" handler="on_entry_activate_cb" object="GcalSearchButton" swapped="no" />
<signal name="next-match" handler="on_entry_next_match_cb" object="GcalSearchButton" swapped="no" />
<signal name="previous-match" handler="on_entry_previous_match_cb" object="GcalSearchButton" swapped="no" />