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
This commit is contained in:
Georges Basile Stavracas Neto
2023-03-16 09:28:30 -03:00
parent b4f11ce052
commit 89d9a96c6f
2 changed files with 22 additions and 7 deletions
+1
View File
@@ -53,6 +53,7 @@
<property name="max-width-chars">0</property>
<property name="width-chars">0</property>
<signal name="search-changed" handler="on_entry_search_changed_cb" object="GcalSearchButton" swapped="no" />
<signal name="stop-search" handler="on_entry_stop_search_cb" object="GcalSearchButton" swapped="no" />
<child>
<object class='GtkShortcutController'>