aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-19 20:51:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-19 20:51:54 +0800
commit66fdfbcf8921da69b08c05dfd4df1be151da447e (patch)
tree052f1ec252ada44c4b309d2fb6f38bda2c5c3d73 /modules
parent32ca78553b735dcb1a05f62a351a56c1289dc8ce (diff)
downloadgsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar.gz
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar.bz2
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar.lz
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar.xz
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.tar.zst
gsoc2013-evolution-66fdfbcf8921da69b08c05dfd4df1be151da447e.zip
EMailShellView: Remove GroupWise-specific cruft.
The GroupWise backend is dead, and this logic never belonged here in the first place.
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-view.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 4cd97c71cc..42cb277d11 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -815,23 +815,17 @@ mail_shell_view_update_actions (EShellView *shell_view)
EMailShellSidebar *mail_shell_sidebar;
EShellSidebar *shell_sidebar;
EShellWindow *shell_window;
- EShell *shell;
EMFolderTree *folder_tree;
EMFolderTreeModel *model;
EMailReader *reader;
EMailView *mail_view;
- CamelStore *store;
- ESourceRegistry *registry;
- ESource *source = NULL;
GtkAction *action;
GList *list, *link;
- const gchar *label;
gchar *uri;
gboolean sensitive;
guint32 state;
/* Be descriptive. */
- gboolean account_is_groupwise = FALSE;
gboolean folder_allows_children;
gboolean folder_can_be_deleted;
gboolean folder_is_outbox;
@@ -849,8 +843,6 @@ mail_shell_view_update_actions (EShellView *shell_view)
E_SHELL_VIEW_CLASS (parent_class)->update_actions (shell_view);
shell_window = e_shell_view_get_shell_window (shell_view);
- shell = e_shell_window_get_shell (shell_window);
- registry = e_shell_get_registry (shell);
mail_shell_view = E_MAIL_SHELL_VIEW (shell_view);
mail_shell_content = mail_shell_view->priv->mail_shell_content;
@@ -888,36 +880,6 @@ mail_shell_view_update_actions (EShellView *shell_view)
(state & E_MAIL_SIDEBAR_STORE_CAN_BE_DISABLED);
uri = em_folder_tree_get_selected_uri (folder_tree);
- store = em_folder_tree_get_selected_store (folder_tree);
-
- if (store != NULL) {
- CamelService *service;
- const gchar *uid;
-
- service = CAMEL_SERVICE (store);
- uid = camel_service_get_uid (service);
- source = e_source_registry_ref_source (registry, uid);
- }
-
- if (source != NULL) {
- ESourceExtension *extension;
- const gchar *backend_name;
- const gchar *extension_name;
-
- extension_name = E_SOURCE_EXTENSION_MAIL_ACCOUNT;
- extension = e_source_get_extension (source, extension_name);
-
- backend_name =
- e_source_backend_get_backend_name (
- E_SOURCE_BACKEND (extension));
-
- /* FIXME This belongs in a GroupWise plugin. */
- account_is_groupwise =
- (g_strcmp0 (backend_name, "groupwise") == 0) &&
- (e_source_get_parent (source) != NULL);
-
- g_object_unref (source);
- }
if (uri != NULL) {
GtkTreeRowReference *reference;
@@ -972,12 +934,7 @@ mail_shell_view_update_actions (EShellView *shell_view)
action = ACTION (MAIL_ACCOUNT_DISABLE);
sensitive = folder_is_store && store_can_be_disabled;
- if (account_is_groupwise)
- label = _("Proxy _Logout");
- else
- label = _("_Disable Account");
gtk_action_set_sensitive (action, sensitive);
- gtk_action_set_label (action, label);
action = ACTION (MAIL_ACCOUNT_EXPUNGE);
sensitive = folder_is_trash;