From 192b603ef668111e0c0bdc78127dcdcb2f4d62ce Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 13 Oct 2010 17:38:00 -0400 Subject: Bug 305425 - Toolbar cancel button is always sensitive --- modules/mail/e-mail-shell-view-actions.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/mail') 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. */ -- cgit v1.2.3