diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 8 | ||||
-rw-r--r-- | shell/e-shell-view-menu.c | 2 | ||||
-rw-r--r-- | shell/e-shell.c | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 956827b95f..8a17e6fdbc 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,5 +1,13 @@ 2003-01-10 Ettore Perazzoli <ettore@ximian.com> + * e-shell.c (e_shell_request_close_view): Make the view save its + settings as the default ones if it's the last one. + + * e-shell-view-menu.c (command_quit): Make this view save its + settings as the defaults before quitting. + +2003-01-10 Ettore Perazzoli <ettore@ximian.com> + * main.c (main): Generate the URI list from the popt context fetched from the GnomeProgram object. diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 453de955a0..8bc89b88f0 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -168,6 +168,8 @@ command_quit (BonoboUIComponent *uih, shell_view = E_SHELL_VIEW (data); + e_shell_view_save_defaults (shell_view); + shell = e_shell_view_get_shell (shell_view); if (e_shell_prepare_for_quit (shell)) diff --git a/shell/e-shell.c b/shell/e-shell.c index 837bc3cc6c..7b99f2b9a4 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1499,7 +1499,11 @@ e_shell_request_close_view (EShell *shell, if (shell->priv->preparing_to_quit) return FALSE; - /* If it's the last view, ask for confirm. */ + /* If it's the last view, save settings and ask for confirmation before + quitting. */ + + e_shell_view_save_defaults (shell_view); + if (e_shell_prepare_for_quit (shell)) return TRUE; else |