aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.h
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-02-23 06:11:47 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-02-23 06:11:47 +0800
commit54c650eaea9a5a74a78e88e0e9e0b98f0719c723 (patch)
tree1749e3135c4cb08aafe25ba4ee155419a74f4ec2 /shell/e-shell.h
parent51b03dbcdfdc984834867a04792781ad8f073f65 (diff)
downloadgsoc2013-evolution-54c650eaea9a5a74a78e88e0e9e0b98f0719c723.tar.gz
gsoc2013-evolution-54c650eaea9a5a74a78e88e0e9e0b98f0719c723.tar.zst
gsoc2013-evolution-54c650eaea9a5a74a78e88e0e9e0b98f0719c723.zip
[Fix #3029, Offline mode should be preserved across sessions.]
* main.c (idle_cb): Use the e_shell_new() API below so that we use the saved offline settings at the next start-up if neither --offline nor --online has been specified. * e-shell.c (save_misc_settings): New function. For now, just save `/Shell/StartOffline' indicating whether the shell should start in offline mode or not. (e_shell_construct): Replace @start_online with @startup_line_mode. (e_shell_new): Likewise. * e-shell.h: New enum EShellStartupLineMode. svn path=/trunk/; revision=15804
Diffstat (limited to 'shell/e-shell.h')
-rw-r--r--shell/e-shell.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/shell/e-shell.h b/shell/e-shell.h
index 44f7f72034..bea61037a0 100644
--- a/shell/e-shell.h
+++ b/shell/e-shell.h
@@ -60,6 +60,13 @@ enum _EShellLineStatus {
};
typedef enum _EShellLineStatus EShellLineStatus;
+enum _EShellStartupLineMode {
+ E_SHELL_STARTUP_LINE_MODE_CONFIG,
+ E_SHELL_STARTUP_LINE_MODE_ONLINE,
+ E_SHELL_STARTUP_LINE_MODE_OFFLINE
+};
+typedef enum _EShellStartupLineMode EShellStartupLineMode;
+
struct _EShell {
BonoboXObject parent;
@@ -95,10 +102,10 @@ EShellConstructResult e_shell_construct (EShell *shell,
const char *iid,
const char *local_directory,
gboolean show_splash,
- gboolean start_online);
+ EShellStartupLineMode startup_line_mode);
EShell *e_shell_new (const char *local_directory,
gboolean show_splash,
- gboolean start_online,
+ EShellStartupLineMode startup_line_mode,
EShellConstructResult *construct_result_return);
EShellView *e_shell_create_view (EShell *shell,