summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2023-05-10 08:42:43 +0200
committerMilan Crha <mcrha@redhat.com>2023-05-10 08:42:43 +0200
commit3ed75e8b15416c6be258555aa10ffdddf030d5f4 (patch)
treebce8ae64fc00c48ce4d1772f0fcc076488052231
parentcab262ed078c86b267b30a9fb358beb207d63323 (diff)
downloadevolution-3ed75e8b15416c6be258555aa10ffdddf030d5f4.tar.gz
I#2355 - Search input field's clear button unclickable during first entry
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2355
-rw-r--r--src/shell/e-shell-searchbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell/e-shell-searchbar.c b/src/shell/e-shell-searchbar.c
index 9bbc96ea4f..9aea082037 100644
--- a/src/shell/e-shell-searchbar.c
+++ b/src/shell/e-shell-searchbar.c
@@ -373,6 +373,9 @@ shell_searchbar_entry_changed_cb (EShellSearchbar *searchbar)
action = E_SHELL_WINDOW_ACTION_SEARCH_QUICK (shell_window);
gtk_action_set_sensitive (action, sensitive);
+
+ action = E_SHELL_WINDOW_ACTION_SEARCH_CLEAR (shell_window);
+ gtk_action_set_sensitive (action, sensitive || e_shell_view_get_search_rule (shell_view) != NULL);
}
}