[evolution-patches] 57529, remember sidebar width



The shell was only remembering the sidebar pane width if you did
File->Quit. This fixes it to remember it if you close the window via the
window manager too.


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/shell/ChangeLog,v
retrieving revision 1.1420
diff -u -r1.1420 ChangeLog
--- ChangeLog	23 Apr 2004 15:14:27 -0000	1.1420
+++ ChangeLog	27 Apr 2004 17:16:55 -0000
@@ -1,3 +1,11 @@
+2004-04-27  Dan Winship  <danw ximian com>
+
+	* e-shell-window-commands.c (command_quit): Don't save window
+	state here.
+
+	* e-shell.c (e_shell_quit): Do it here, so it gets called if you
+	quit by closing the last window via its close button too. #57529
+
 2004-04-23  JP Rosevear <jpr ximian com>
 
 	* e-shell-window.c (e_shell_window_show_settings): if there is a
Index: e-shell.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell.c,v
retrieving revision 1.244
diff -u -r1.244 e-shell.c
--- e-shell.c	9 Apr 2004 21:56:34 -0000	1.244
+++ e-shell.c	27 Apr 2004 17:16:55 -0000
@@ -1175,8 +1175,11 @@
 	if (can_quit) {
 		GList *p = shell->priv->windows;
 
-		for (; p != NULL; p = p->next)
+		for (; p != NULL; p = p->next) {
 			gtk_widget_set_sensitive (GTK_WIDGET (p->data), FALSE);
+			if (p == shell->priv->windows)
+				e_shell_window_save_defaults (p->data);
+		}
 		can_quit = !es_run_quit(shell);
 	}
 
Index: e-shell-window-commands.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell-window-commands.c,v
retrieving revision 1.13
diff -u -r1.13 e-shell-window-commands.c
--- e-shell-window-commands.c	19 Apr 2004 15:17:54 -0000	1.13
+++ e-shell-window-commands.c	27 Apr 2004 17:16:55 -0000
@@ -98,7 +98,6 @@
 {
 	EShell *shell = e_shell_window_peek_shell (window);
 
-	e_shell_window_save_defaults (window);
 	e_shell_quit(shell);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]