Jean-François Fortin Tam
f332b5a076
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
2024-05-01 14:52:13 +00:00
Hari Rana
2b9be229ea
a11y: Add labels for search
2023-11-30 22:08:23 -05:00
Automeris naranja
8aa62b0a17
general: Add placeholder text to search entries
...
Acc. HIG, "text fields should have placeholder text or a label".
https://developer.gnome.org/hig/patterns/controls/text-fields.html
2023-06-19 22:48:02 +00:00
Georges Basile Stavracas Neto
21412ea3ba
search-button: Port results to GtkListView
...
Port the search results list to GtkListview. Use bindings to set
the title, icon, and subtitle of each row. Remove GcalSearchHitRow
as it's unused now.
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
dbfc1c030a
search-button: Cleanup unused shortcut controller
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
89d9a96c6f
search-button: React to 'stop-search' signal
...
Quit the search entry state when the search entry emits stop-search,
usually that's when Escape is pressed when the search entry is
focused.
Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/830
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
b4f11ce052
search-button: Don't do anything when popover closes
...
It's, at best, annoying. Also stop resetting the entry text when
hiding suggestions, as it may loop with the text changed callback.
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
4b15e7647c
search-button: Use 'search-changed' signal
...
It uses a 150ms delay, which helps with reducing the number of
queries we do.
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
bd97430bf3
search-button: Use GtkSearchEntry
...
Allows us to cleanup style a bit. Next commits will use search entry
functionality better.
2023-03-16 09:28:30 -03:00
Georges Basile Stavracas Neto
74c410bd85
Port search subsystem to GTK4
2022-02-11 09:18:38 -03:00