aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 05:38:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 05:38:00 +0800
commit192b603ef668111e0c0bdc78127dcdcb2f4d62ce (patch)
tree1c3b49982906ff52629383f8ba26e941e816c6c8
parentb4f97aea9b6681c3483f355c9081e2b3b9ee5fd3 (diff)
downloadgsoc2013-evolution-192b603ef668111e0c0bdc78127dcdcb2f4d62ce.tar.gz
gsoc2013-evolution-192b603ef668111e0c0bdc78127dcdcb2f4d62ce.tar.zst
gsoc2013-evolution-192b603ef668111e0c0bdc78127dcdcb2f4d62ce.zip
Bug 305425 - Toolbar cancel button is always sensitive
-rw-r--r--modules/mail/e-mail-shell-view-actions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 3c4871bffe..920aa0680e 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1465,6 +1465,7 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
EMailShellContent *mail_shell_content;
EShellView *shell_view;
EShellWindow *shell_window;
+ EShellBackend *shell_backend;
EShell *shell;
EShellSearchbar *searchbar;
EActionComboBox *combo_box;
@@ -1479,6 +1480,7 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
shell_view = E_SHELL_VIEW (mail_shell_view);
shell_window = e_shell_view_get_shell_window (shell_view);
+ shell_backend = e_shell_view_get_shell_backend (shell_view);
shell = e_shell_window_get_shell (shell_window);
mail_shell_content = mail_shell_view->priv->mail_shell_content;
@@ -1570,6 +1572,10 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
ACTION (MAIL_SHOW_DELETED), "active",
mail_view, "show-deleted");
+ e_binding_new (
+ shell_backend, "busy",
+ ACTION (MAIL_STOP), "sensitive");
+
/* Keep the sensitivity of "Create Search Folder from Search"
* in sync with "Save Search" so that its only selectable when
* showing search results. */