[evolution] Bug 651112 - Hide "Search->Save search..." menu item when cannot be used
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 651112 - Hide "Search->Save search..." menu item when cannot be used
- Date: Tue, 14 Jun 2016 09:36:37 +0000 (UTC)
commit 4bb0999f70d532958f8d7a08420379e673ffc3a6
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 14 11:36:13 2016 +0200
Bug 651112 - Hide "Search->Save search..." menu item when cannot be used
shell/e-shell-searchbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index e3d9f1a..00073a0 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -264,7 +264,7 @@ shell_searchbar_update_search_widgets (EShellSearchbar *searchbar)
gtk_action_set_sensitive (action, sensitive);
action = E_SHELL_WINDOW_ACTION_SEARCH_SAVE (shell_window);
- gtk_action_set_sensitive (action, sensitive);
+ gtk_action_set_visible (action, sensitive && e_shell_view_get_search_rule (shell_view) != NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]