From 54c650eaea9a5a74a78e88e0e9e0b98f0719c723 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 22 Feb 2002 22:11:47 +0000 Subject: [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 --- shell/e-shell.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'shell/e-shell.h') 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, -- cgit