aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-31 23:47:17 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-01 00:10:54 +0800
commit018018fabe7e660f7928b8a7b817bb63202dc734 (patch)
tree4003e5c682570d819b6baf49528631efb2c52892 /mail
parent85fac8778261ce1fc80d8857158eb18a399da9ee (diff)
downloadgsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.gz
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.bz2
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.lz
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.xz
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.tar.zst
gsoc2013-evolution-018018fabe7e660f7928b8a7b817bb63202dc734.zip
Remove more Express Mode hacks.
This removes all traces of Express Mode from all but the contact editor and calendar appointment editor. Need to evaluate the remaining cases individually.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-backend.c5
-rw-r--r--mail/em-folder-tree.c20
2 files changed, 1 insertions, 24 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index cfd6f0a349..610e8913fa 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -382,11 +382,6 @@ mail_backend_quit_requested_cb (EShell *shell,
if (reason == E_SHELL_QUIT_REMOTE_REQUEST)
return;
- /* In express mode, don't raise mail request in non mail window. */
- if (e_shell_get_express_mode (shell) &&
- strcmp (e_shell_window_get_active_view ((EShellWindow *) window), "mail") != 0)
- return;
-
if (!e_shell_backend_is_started (mail_shell_backend))
return;
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 33a89b1da1..195a09fad7 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -3455,7 +3455,6 @@ void
em_folder_tree_restore_state (EMFolderTree *folder_tree,
GKeyFile *key_file)
{
- EShell *shell;
EMFolderTreeModel *folder_tree_model;
EMailSession *session;
GtkTreeModel *tree_model;
@@ -3464,17 +3463,12 @@ em_folder_tree_restore_state (EMFolderTree *folder_tree,
gboolean valid;
gchar **groups_arr;
GSList *groups, *group;
- gboolean express_mode;
gint ii;
/* Make sure we have a key file to restore state from. */
if (key_file == NULL)
return;
- /* XXX Pass this in. */
- shell = e_shell_get_default ();
- express_mode = e_shell_get_express_mode (shell);
-
tree_view = GTK_TREE_VIEW (folder_tree);
tree_model = gtk_tree_view_get_model (tree_view);
@@ -3584,8 +3578,6 @@ em_folder_tree_restore_state (EMFolderTree *folder_tree,
CamelService *service;
const gchar *key = STATE_KEY_EXPANDED;
const gchar *uid;
- gboolean expand_row;
- gboolean built_in_store;
gchar *group_name;
gtk_tree_model_get (
@@ -3600,17 +3592,7 @@ em_folder_tree_restore_state (EMFolderTree *folder_tree,
group_name = g_strdup_printf ("Store %s", uid);
/* Expand stores that have no "Expanded" key. */
- expand_row = !g_key_file_has_key (
- key_file, group_name, key, NULL);
-
- built_in_store =
- (g_strcmp0 (uid, E_MAIL_SESSION_LOCAL_UID) == 0) ||
- (g_strcmp0 (uid, E_MAIL_SESSION_VFOLDER_UID) == 0);
-
- if (express_mode && built_in_store)
- expand_row = FALSE;
-
- if (expand_row) {
+ if (!g_key_file_has_key (key_file, group_name, key, NULL)) {
GtkTreePath *path;
path = gtk_tree_model_get_path (tree_model, &iter);