From 5787b629312f2c2132a666a9ee4d8b2091815ad1 Mon Sep 17 00:00:00 2001 From: Viswanath Sivakumar Date: Thu, 21 Jan 2010 12:22:06 -0500 Subject: =?UTF-8?q?Bug=C2=A0549558=20-=20"Download=20Messages=20for=20Offl?= =?UTF-8?q?ine=20Usage"=20still=20sensitive=20in=20offline=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/mail/e-mail-shell-view-actions.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 272edfb689..6b72c7796d 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); -- cgit v1.2.3