[evolution] Bug 549558 - "Download Messages for Offline Usage" still sensitive in offline mode



commit 5787b629312f2c2132a666a9ee4d8b2091815ad1
Author: Viswanath Sivakumar <viswanathgs gmail com>
Date:   Thu Jan 21 12:22:06 2010 -0500

    Bug 549558 - "Download Messages for Offline Usage" still sensitive in offline mode

 modules/mail/e-mail-shell-view-actions.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 272edfb..6b72c77 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -943,7 +943,7 @@ static GtkActionEntry mail_entries[] = {
 	  NULL,
 	  N_("_Download Messages for Offline Usage"),
 	  NULL,
-	  N_("Download messages of accounts and folders marked for offline"),
+	  N_("Download messages of accounts and folders marked for offline usage"),
 	  G_CALLBACK (action_mail_download_cb) },
 
 	{ "mail-flush-outbox",
@@ -1409,6 +1409,7 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
 	EMailShellContent *mail_shell_content;
 	EShellView *shell_view;
 	EShellWindow *shell_window;
+	EShell *shell;
 	EShellSearchbar *searchbar;
 	EActionComboBox *combo_box;
 	GtkActionGroup *action_group;
@@ -1421,6 +1422,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 = e_shell_window_get_shell (shell_window);
 
 	mail_shell_content = mail_shell_view->priv->mail_shell_content;
 	searchbar = e_mail_shell_content_get_searchbar (mail_shell_content);
@@ -1519,6 +1521,10 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
 		ACTION (SEARCH_SAVE), "sensitive",
 		ACTION (MAIL_CREATE_SEARCH_FOLDER), "sensitive");
 
+	e_binding_new (
+		shell, "online",
+		ACTION (MAIL_DOWNLOAD), "sensitive");
+
 	g_signal_connect (
 		ACTION (GAL_SAVE_CUSTOM_VIEW), "activate",
 		G_CALLBACK (action_gal_save_custom_view_cb), mail_shell_view);



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