[evolution] Bug 305425 - Toolbar cancel button is always sensitive



commit 192b603ef668111e0c0bdc78127dcdcb2f4d62ce
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Oct 13 17:38:00 2010 -0400

    Bug 305425 - Toolbar cancel button is always sensitive

 modules/mail/e-mail-shell-view-actions.c |    6 ++++++
 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 3c4871b..920aa06 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. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]