aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 6173f47498..948f7c41e3 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -117,6 +117,9 @@ struct _EShellPrivate {
/* Whether quit has been requested, and the shell is now waiting for
permissions from all the components to quit. */
unsigned int preparing_to_quit : 1;
+
+ /* Whether we are recovering from a crash in the previous session. */
+ unsigned int crash_recovery : 1;
};
@@ -1214,6 +1217,23 @@ e_shell_go_online (EShell *shell,
set_line_status(shell, shell_state);
}
+gboolean
+e_shell_get_crash_recovery (EShell *shell)
+{
+ g_return_val_if_fail (E_IS_SHELL (shell), NULL);
+
+ return shell->priv->crash_recovery;
+}
+
+void
+e_shell_set_crash_recovery (EShell *shell,
+ gboolean crash_recovery)
+{
+ g_return_if_fail (E_IS_SHELL (shell));
+
+ shell->priv->crash_recovery = crash_recovery;
+}
+
void
e_shell_send_receive (EShell *shell)
{